/**
 * Login + site select — layout, modern cards, theme-aligned blues (#509de0).
 */

.preloader {
	position: fixed;
	background-color: #fff;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9991;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.preloader__image {
	animation-fill-mode: both;
	animation-name: flipInY;
	animation-duration: 2s;
	animation-iteration-count: infinite;
}

@keyframes flipInY {
	from {
		opacity: 0.7;
		transform: perspective(400px) rotate3d(0, 1, 0, -8deg);
	}
	to {
		opacity: 1;
		transform: perspective(400px) rotate3d(0, 1, 0, 8deg);
	}
}

/* ---------- Login — premium tek kart ---------- */
.login-page#sign-in,
.login-page {
	min-height: 100vh;
	background:
		radial-gradient(120% 80% at 50% -15%, rgba(80, 157, 224, 0.22) 0%, transparent 52%),
		linear-gradient(168deg, #e4eaf3 0%, #d8e1ec 38%, #cfd8e6 100%);
	font-family: "Open Sans", "Roboto", system-ui, -apple-system, sans-serif;
}

.login-no-margin-bottom {
	margin-bottom: 0 !important;
}

.login-page-inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	min-height: 100vh;
	padding: clamp(20px, 5vh, 56px) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
	box-sizing: border-box;
}

.login-shell {
	width: 100%;
	max-width: 420px;
	min-width: 0;
	margin-left: auto;
	margin-right: auto;
	padding-left: 16px;
	padding-right: 16px;
	box-sizing: border-box;
}

.login-single-panel {
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: 22px;
	box-shadow:
		0 0 0 1px rgba(15, 23, 42, 0.04),
		0 2px 4px rgba(15, 23, 42, 0.04),
		0 24px 48px -16px rgba(15, 23, 42, 0.18);
	overflow: visible;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.login-single-panel {
		background: #fff;
	}
}

.login-single-panel.panel {
	margin-bottom: 0;
	border-color: rgba(255, 255, 255, 0.7);
}

.login-single-panel > .panel-heading {
	display: none;
}

.login-single-panel-body {
	padding: 0;
}

/* Üst: logo + dil aynı satır; başlık tam genişlik */
.login-single-hero {
	padding: 26px 26px 22px;
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(248, 250, 252, 0.4) 100%);
}

.login-single-hero__top {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 18px;
	min-height: 68px;
}

.login-single-hero__logo {
	flex: 0 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
}

.login-single-logo {
	display: block;
	max-height: 64px;
	width: auto;
	max-width: min(280px, 72vw);
	height: auto;
}

.login-single-logo--fallback {
	max-height: 60px;
	filter: contrast(1.08);
}

.login-single-hero__lang {
	flex: 0 0 auto;
}

.login-single-hero__lang .dropdown {
	position: relative;
	z-index: 40;
}

.login-single-hero .dropdown.open {
	z-index: 1050;
}

.login-single-hero .dropdown-menu {
	z-index: 1060;
	min-width: 168px;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
	border: 1px solid rgba(226, 232, 240, 0.95);
	padding: 6px 0;
}

.login-lang-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 38px;
	padding: 8px 12px;
	border-radius: 11px;
	font-weight: 600;
	font-size: 12px;
	color: #334155;
	border: 1px solid rgba(148, 163, 184, 0.65);
	background: rgba(255, 255, 255, 0.85);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
	white-space: nowrap;
	max-width: 100%;
}

.login-lang-toggle__label {
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.login-lang-toggle__code {
	font-weight: 700;
	color: #0f172a;
}

.login-lang-toggle .login-lang-caret {
	font-size: 11px;
	line-height: 1;
	margin-left: 2px;
	flex-shrink: 0;
	align-self: center;
	color: #64748b;
}

.login-lang-toggle:hover,
.login-lang-toggle:focus {
	border-color: rgba(80, 157, 224, 0.55);
	color: #0f172a;
	background: #fff;
	box-shadow: 0 4px 14px rgba(80, 157, 224, 0.15);
	outline: none;
}

.login-lang-toggle .ti-world {
	font-size: 15px;
	color: #509de0;
	flex-shrink: 0;
}

.login-lang-sep {
	margin: 0 3px;
	color: #94a3b8;
}

.login-lang-menu > li > a {
	padding: 10px 18px;
	font-weight: 600;
	font-size: 14px;
}

.login-lang-menu > li > a:hover,
.login-lang-menu > li > a:focus {
	background: #f1f5f9;
	color: #509de0;
}

.login-single-hero__title {
	font-size: 1.35rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px;
	line-height: 1.28;
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.login-single-hero__subtitle {
	font-size: 13px;
	line-height: 1.55;
	color: #64748b;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.login-single-body {
	padding: 20px 26px 18px;
	min-width: 0;
}

.login-tab-nav {
	background: rgba(15, 23, 42, 0.05);
	padding: 5px;
	border-radius: 14px;
	border: 1px solid rgba(15, 23, 42, 0.06);
	gap: 5px;
	display: flex;
	flex-wrap: nowrap;
	width: 100%;
	margin: 0;
	list-style: none;
}

.login-tab-nav > li {
	padding: 0;
	float: none;
	flex: 1 1 0;
	min-width: 0;
}

.login-tab-nav > li > a {
	border-radius: 11px;
	font-weight: 600;
	font-size: 13px;
	color: #475569;
	margin: 0;
	border: 1px solid transparent;
	overflow-wrap: anywhere;
	word-break: break-word;
	line-height: 1.3;
	padding: 11px 10px;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.login-tab-nav > li.active > a,
.login-tab-nav > li.active > a:hover,
.login-tab-nav > li.active > a:focus {
	background: #fff;
	border-color: rgba(80, 157, 224, 0.35);
	color: #2563ad;
	box-shadow: 0 2px 10px rgba(80, 157, 224, 0.12);
}

.login-tab-nav > li > a:hover {
	background: rgba(255, 255, 255, 0.75);
	color: #334155;
}

.login-tab-nav-spacing {
	margin-bottom: 18px;
}

/* İçerik yüksekliği kadar — sabit min-height girişte boşluk bırakıyordu */
.login-tab-content-wrap {
	position: relative;
	min-width: 0;
	min-height: 0;
}

.login-tab-content-wrap > .tab-pane {
	min-width: 0;
}

.login-reg-name-pair {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0 14px;
	margin-left: 0;
	margin-right: 0;
}

.login-reg-name-pair__field {
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	max-width: 100%;
}

@media (max-width: 479px) {
	.login-reg-name-pair__field {
		flex: 1 1 100%;
	}
}

/* Formlar */
.login-page .form-group {
	margin-bottom: 18px;
}

.login-page .form-control {
	border-radius: 12px;
	min-height: 46px;
	padding: 11px 14px;
	font-size: 15px;
	border: 1px solid #e2e8f0;
	background: #fff;
	box-shadow: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
	color: #0f172a;
}

.login-page .form-control::placeholder {
	color: #94a3b8;
}

.login-page .form-control:hover {
	border-color: #cbd5e1;
}

.login-page .form-control:focus {
	border-color: #509de0;
	box-shadow: 0 0 0 4px rgba(80, 157, 224, 0.18);
	outline: none;
}

.login-page .control-label {
	font-weight: 600;
	color: #334155;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 7px;
}

.login-page .btn {
	border-radius: 12px;
	font-weight: 600;
	transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
}

.login-submit-btn {
	margin-top: 6px;
	padding: 14px 20px !important;
	font-size: 15px !important;
	letter-spacing: 0.02em;
	border: none !important;
	color: #fff !important;
	background: linear-gradient(135deg, #3a6fa8 0%, #509de0 42%, #3d8ad4 100%) !important;
	box-shadow:
		0 4px 16px rgba(80, 157, 224, 0.38),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-submit-btn:hover,
.login-submit-btn:focus {
	filter: brightness(1.06);
	transform: translateY(-1px);
	color: #fff !important;
	box-shadow:
		0 8px 24px rgba(80, 157, 224, 0.42),
		inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.login-submit-btn:active {
	transform: translateY(0);
}

.login-submit-btn:disabled,
.login-submit-btn.disabled {
	opacity: 0.62;
	transform: none !important;
	cursor: not-allowed;
	filter: none;
	box-shadow: 0 2px 8px rgba(80, 157, 224, 0.2) !important;
}

.login-submit-btn i {
	margin-right: 8px;
	vertical-align: -1px;
}

.login-page .btn-default {
	border-color: #cbd5e1;
	color: #475569;
	background: #fff;
}

.login-page .btn-default:hover {
	background: #f8fafc;
	border-color: #94a3b8;
}

/* ---------- Site select ---------- */
#siteSelectPage.site-select-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(20px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
	box-sizing: border-box;
	font-family: "Open Sans", "Roboto", system-ui, sans-serif;
	background:
		radial-gradient(80% 60% at 50% -10%, rgba(80, 157, 224, 0.18) 0%, transparent 55%),
		linear-gradient(165deg, #e8edf5 0%, #dce4ef 45%, #d4dce8 100%);
}

.site-select-shell {
	width: 100%;
	max-width: 460px;
	margin: 0 auto;
}

.site-select-card {
	background: #fff;
	border-radius: 16px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow:
		0 1px 3px rgba(0, 0, 0, 0.05),
		0 20px 40px -12px rgba(15, 23, 42, 0.15);
	overflow: visible;
}

.site-select-header {
	position: relative;
	z-index: 10;
	padding: 20px 24px 12px;
	text-align: center;
}

.site-select-lang-row {
	position: relative;
	z-index: 30;
	margin-bottom: 8px;
	min-height: 36px;
}

.site-select-lang-row .dropdown-menu {
	z-index: 1060;
	min-width: 160px;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
	border: 1px solid #e2e8f0;
}

.site-select-brand {
	display: inline-block;
	max-width: 100%;
	margin-bottom: 12px;
	padding: 14px 22px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow:
		0 2px 6px rgba(15, 23, 42, 0.06),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.site-select-logo {
	display: block;
	max-height: 80px;
	max-width: min(300px, 76vw);
	width: auto;
	margin: 0 auto 0;
	height: auto;
}

.site-select-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.45;
	margin: 0 0 8px;
}

.site-select-hint {
	font-size: 13px;
	margin: 0 0 4px;
	min-height: 1.2em;
	color: #475569;
	font-weight: 500;
	line-height: 1.45;
}

.site-select-actions {
	padding: 8px 24px 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.btn-site-pick {
	display: flex;
	align-items: center;
	width: 100%;
	text-align: left;
	border: none;
	border-radius: 12px;
	padding: 0;
	cursor: pointer;
	font-family: inherit;
	background: linear-gradient(135deg, #509de0 0%, #3b82c4 100%);
	color: #fff;
	box-shadow: 0 4px 14px rgba(80, 157, 224, 0.35);
	transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
}

.btn-site-pick:hover,
.btn-site-pick:focus {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(80, 157, 224, 0.45);
	filter: brightness(1.03);
	outline: none;
}

.btn-site-pick:active {
	transform: translateY(0);
}

.btn-site-pick__icon {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 12px 0 0 12px;
}

.btn-site-pick__text {
	flex: 1 1 auto;
	padding: 14px 12px;
	font-size: 15px;
	font-weight: 600;
	word-break: break-all;
	line-height: 1.35;
}

.btn-site-pick__arrow {
	flex: 0 0 auto;
	padding: 14px 16px;
	opacity: 0.85;
	font-size: 18px;
}

.btn-site-logout {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 4px;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	border: 2px solid #fecaca;
	background: #fff;
	color: #dc2626;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-site-logout:hover,
.btn-site-logout:focus {
	background: #fef2f2;
	border-color: #f87171;
	color: #b91c1c;
	outline: none;
}

/* Legacy class kept for JSP hook */
.siteSelectTitle {
	color: #1e293b;
}

/* ---------- Redirect pages (site select / session expired) ---------- */
.admin-redirect-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(20px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
	box-sizing: border-box;
	font-family: "Open Sans", "Roboto", system-ui, sans-serif;
	background:
		radial-gradient(80% 60% at 50% -10%, rgba(80, 157, 224, 0.18) 0%, transparent 55%),
		linear-gradient(165deg, #e8edf5 0%, #dce4ef 45%, #d4dce8 100%);
}

.admin-redirect-shell {
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
}

.admin-redirect-card {
	background: #fff;
	border-radius: 16px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow:
		0 1px 3px rgba(0, 0, 0, 0.05),
		0 20px 40px -12px rgba(15, 23, 42, 0.15);
	padding: 28px 24px 32px;
	text-align: center;
}

.admin-redirect-brand {
	display: inline-block;
	margin-bottom: 18px;
	padding: 14px 22px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow:
		0 2px 6px rgba(15, 23, 42, 0.06),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-redirect-logo {
	display: block;
	max-height: 72px;
	max-width: min(280px, 72vw);
	width: auto;
	margin: 0 auto;
	height: auto;
}

.admin-redirect-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 24px;
	color: #509de0;
	background: linear-gradient(135deg, rgba(80, 157, 224, 0.14) 0%, rgba(59, 130, 196, 0.1) 100%);
}

.admin-redirect-icon--session {
	color: #d97706;
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(217, 119, 6, 0.1) 100%);
}

.admin-redirect-loader {
	margin-bottom: 8px;
}

.admin-redirect-loader__image {
	animation-fill-mode: both;
	animation-name: flipInY;
	animation-duration: 2s;
	animation-iteration-count: infinite;
}

.admin-redirect-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.45;
	margin: 0 0 10px;
}

.admin-redirect-message {
	font-size: 14px;
	color: #475569;
	font-weight: 500;
	line-height: 1.55;
	margin: 0 0 18px;
}

.admin-redirect-fallback {
	font-size: 13px;
	margin: 0;
}

.admin-redirect-fallback a {
	color: #509de0;
	font-weight: 600;
	text-decoration: none;
}

.admin-redirect-fallback a:hover,
.admin-redirect-fallback a:focus {
	color: #3b82c4;
	text-decoration: underline;
}

@media (max-width: 767px) {
	.login-shell {
		padding-left: 10px;
		padding-right: 10px;
	}

	.login-page-inner {
		padding-top: 12px;
		padding-bottom: max(12px, env(safe-area-inset-bottom));
	}

	.login-tab-nav > li > a {
		font-size: 12px;
		padding-left: 8px;
		padding-right: 8px;
	}

	.login-single-body {
		padding-left: 18px;
		padding-right: 18px;
		padding-bottom: 22px;
	}

	.login-single-hero {
		padding-left: 18px;
		padding-right: 18px;
	}

	.login-lang-toggle__label {
		max-width: 72px;
	}

}
