/* OdamiDonat - Personel giris (mobil oncelikli, kompakt) */

*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	margin: 0;
}

body.login-page {
	background: linear-gradient(160deg, #080808 0%, #141414 45%, #0c0c0c 100%);
	background-attachment: fixed;
	min-height: 100vh;
	min-height: 100dvh;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	position: relative;
	color: #e8ecee;
	-webkit-font-smoothing: antialiased;
}

body.login-page::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image:
		radial-gradient(circle at 18% 22%, rgba(47, 123, 137, 0.08) 0%, transparent 42%),
		radial-gradient(circle at 82% 78%, rgba(47, 123, 137, 0.05) 0%, transparent 40%);
	pointer-events: none;
	z-index: 0;
}

.login-wrapper {
	position: fixed;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	z-index: 1;
}

.login-container {
	width: 100%;
	max-width: 22rem;
	margin: 0 auto;
	flex: 0 1 auto;
	padding:
		max(0.75rem, env(safe-area-inset-top))
		max(0.85rem, env(safe-area-inset-right))
		max(0.75rem, env(safe-area-inset-bottom))
		max(0.85rem, env(safe-area-inset-left));
}

.login-card {
	display: flex;
	flex-direction: column;
	background: linear-gradient(180deg, #1c1c1c 0%, #161616 100%);
	border: 1px solid #2a3338;
	border-radius: 1rem;
	box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
	overflow: hidden;
}

.login-card-header {
	flex-shrink: 0;
	text-align: center;
	padding: 1rem 1rem 0.65rem;
	border-bottom: 1px solid rgba(42, 51, 56, 0.6);
}

.login-logo {
	display: block;
	line-height: 0;
}

.login-logo img {
	height: 3.5rem;
	width: auto;
	max-width: min(100%, 13rem);
	object-fit: contain;
}

.login-logo--app img {
	height: 10.25rem;
	max-width: min(100%, 11rem);
}

.od-db-env-test-badge {
	display: inline-block;
	margin-top: 0.35rem;
	padding: 0.2rem 0.5rem;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: #fff;
	background: #dc3545;
	border: 2px solid #ff6b7a;
	border-radius: 0.25rem;
	max-width: 100%;
	word-break: break-all;
	text-transform: uppercase;
}

.login-card-body {
	padding: 0.85rem 1rem 1rem;
}

.login-heading {
	margin-bottom: 0.75rem;
}

.login-heading__title {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	color: #ffffff;
	letter-spacing: -0.01em;
}

.login-heading__hint {
	margin: 0.2rem 0 0;
	font-size: 0.78rem;
	line-height: 1.35;
	color: #8a9aa0;
}

.login-heading__hint a {
	color: #4a9caa;
	text-decoration: none;
}

.login-heading__hint a:hover {
	color: #e8ecee;
	text-decoration: underline;
}

.login-form-section {
	display: flex;
	flex-direction: column;
}

.login-field {
	margin-bottom: 0.75rem;
}

.login-field__label {
	display: block;
	color: #9aabb0;
	font-weight: 500;
	font-size: 0.75rem;
	margin-bottom: 0.35rem;
}

.login-phone-group {
	display: flex;
	align-items: stretch;
	width: 100%;
	min-height: 2.75rem;
	background: #121212;
	border: 1px solid #333;
	border-radius: 0.6rem;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-phone-group:focus-within {
	border-color: #2F7B89;
	box-shadow: 0 0 0 2px rgba(47, 123, 137, 0.2);
}

.login-phone-prefix {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	padding: 0 0 0 0.75rem;
	color: #e8ecee;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	user-select: none;
	/*border-right: 1px solid #2a3338;*/
	background: rgba(255, 255, 255, 0.02);
}

.login-phone-group .form-control {
	flex: 1 1 auto;
	min-width: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	padding: 0.65rem 0.75rem;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	color: #ffffff;
	box-shadow: none;
	-webkit-text-fill-color: #ffffff;
}

.login-phone-group .form-control::placeholder {
	color: #5a686e;
	letter-spacing: 0.08em;
	opacity: 1;
}

.login-phone-group .form-control:focus {
	background: transparent;
	box-shadow: none;
	outline: none;
}

.login-otp {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.5rem;
	margin-bottom: 0.15rem;
}

.login-otp__digit {
	width: 100%;
	aspect-ratio: 1 / 1;
	max-height: 3.25rem;
	text-align: center;
	font-size: 1.35rem;
	font-weight: 700;
	color: #ffffff;
	background: #121212;
	border: 1px solid #333;
	border-radius: 0.6rem;
	padding: 0;
	caret-color: #2F7B89;
	-webkit-text-fill-color: #ffffff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-otp__digit:focus {
	outline: none;
	border-color: #2F7B89;
	box-shadow: 0 0 0 2px rgba(47, 123, 137, 0.2);
	background: #171717;
}

.login-otp__digit.filled {
	border-color: rgba(47, 123, 137, 0.55);
	background: rgba(47, 123, 137, 0.08);
}

.login-otp__digit.error {
	border-color: #dc3545;
	box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.login-actions {
	margin-top: 0.25rem;
}

.btn-login {
	width: 100%;
	min-height: 2.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	background: linear-gradient(135deg, #2F7B89 0%, #256370 100%);
	border: none;
	color: #ffffff !important;
	font-weight: 600;
	padding: 0.65rem 1rem;
	border-radius: 0.6rem;
	font-size: 0.9rem;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
	box-shadow: 0 0.25rem 0.75rem rgba(47, 123, 137, 0.3);
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.btn-login:hover:not(:disabled) {
	background: linear-gradient(135deg, #3d8f9d 0%, #2F7B89 100%);
	box-shadow: 0 0.35rem 1rem rgba(47, 123, 137, 0.38);
	color: #ffffff !important;
}

.btn-login:active:not(:disabled) {
	transform: scale(0.98);
}

.btn-login:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.login-secondary-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.4rem;
	margin-top: 0.5rem;
}

.btn-login-secondary {
	min-height: 2.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	padding: 0.4rem 0.5rem;
	border-radius: 0.55rem;
	border: 1px solid #2a3338;
	background: rgba(255, 255, 255, 0.03);
	color: #b8c5ca !important;
	font-size: 0.75rem;
	font-weight: 500;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-login-secondary:hover,
.btn-login-secondary:focus {
	background: rgba(47, 123, 137, 0.1);
	border-color: rgba(47, 123, 137, 0.35);
	color: #e8ecee !important;
}

.login-phone-display {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	margin-top: 0.55rem;
	padding: 0.4rem 0.6rem;
	border-radius: 0.55rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid #2a3338;
	font-size: 0.75rem;
	color: #8a9aa0;
}

.login-phone-display strong {
	color: #e8ecee;
	font-weight: 600;
	letter-spacing: 0.03em;
}

.validation-summary,
.login-alert-info {
	border-radius: 0.55rem;
	padding: 0.55rem 0.65rem;
	margin-top: 0.65rem;
	font-size: 0.78rem;
	line-height: 1.35;
}

.validation-summary {
	background: rgba(220, 53, 69, 0.12);
	border: 1px solid rgba(220, 53, 69, 0.35);
	color: #ff8a8a;
}

.login-alert-info {
	background: rgba(47, 123, 137, 0.12);
	border: 1px solid rgba(47, 123, 137, 0.3);
	color: #b8dde3;
}

@media (min-width: 577px) {
	.login-container {
		max-width: 24rem;
		padding: 1.25rem;
	}

	.login-card {
		border-radius: 1.1rem;
	}

	.login-card-header {
		padding: 1.15rem 1.15rem 0.75rem;
	}

	.login-logo img {
		height: 4rem;
	}

	.login-logo--app img {
		height: 10.25rem;
	}

	.login-card-body {
		padding: 1rem 1.15rem 1.15rem;
	}

	.login-heading__title {
		font-size: 1.05rem;
	}
}

@media (max-width: 380px) {
	.login-container {
		padding-left: max(0.65rem, env(safe-area-inset-left));
		padding-right: max(0.65rem, env(safe-area-inset-right));
	}

	.login-card-body {
		padding: 0.75rem 0.85rem 0.85rem;
	}

	.login-otp {
		gap: 0.4rem;
	}

	.login-otp__digit {
		font-size: 1.2rem;
		max-height: 2.85rem;
	}

	.login-secondary-actions {
		grid-template-columns: 1fr;
	}
}

@media (max-height: 520px) and (max-width: 576px) {
	.login-card-header {
		padding: 0.65rem 0.85rem 0.5rem;
	}

	.login-logo img {
		height: 2.85rem;
	}

	.login-logo--app img {
		height: 4.5rem;
	}

	.login-heading {
		margin-bottom: 0.55rem;
	}

	.login-heading__title {
		font-size: 0.92rem;
	}

	.login-heading__hint {
		font-size: 0.72rem;
	}
}
