/* DreamLite — full-screen hero bg + right-floating glass card */
:root {
	--dl-brand: #4F46E5;
	--dl-brand-light: #6366F1;
	--dl-text: #ffffff;
	--dl-text-muted: rgba(255, 255, 255, 0.75);
	--dl-card-bg: rgba(10, 12, 28, 0.48);
	--dl-card-border: rgba(255, 255, 255, 0.14);
	--dl-input-bg: rgba(0, 0, 0, 0.42);
	--dl-input-border: rgba(255, 255, 255, 0.18);
	--dl-card-radius: 24px;
	--dl-input-radius: 12px;
	--dl-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body.dl-login-body {
	min-height: 100%;
	font-family: var(--dl-font);
	background: #080812;
	color: var(--dl-text);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* ── Hero: single full-screen background (no split sections) ── */
.dl-login-page {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	width: 100%;
}

.dl-login-page__bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	background-color: #080812;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.dl-login-page__overlay {
	position: fixed;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		105deg,
		rgba(10, 10, 30, 0.35) 0%,
		rgba(10, 10, 30, 0.5) 45%,
		rgba(10, 10, 30, 0.68) 100%
	);
	pointer-events: none;
}

/* ── Floating card: right side only, vertically centered ── */
.dl-login-wrap {
	position: fixed;
	z-index: 2;
	right: 8%;
	top: 50%;
	transform: translateY(-50%);
	width: 435px;
	max-width: calc(100vw - 2rem);
}

.dl-login-card {
	width: 100%;
	padding: 2rem 1.85rem 1.65rem;
	border-radius: var(--dl-card-radius);
	background: rgba(10, 12, 28, 0.82);
	border: 1px solid var(--dl-card-border);
	box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	isolation: isolate;
}

.dl-login-card__logo {
	display: flex;
	justify-content: center;
	margin-bottom: 1.35rem;
}

.dl-login-card__logo a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	text-decoration: none;
	color: var(--dl-text);
}

.dl-login-card__logo img {
	height: 36px;
	width: auto;
}

.dl-login-card__logo-text {
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.dl-login-card__title {
	text-align: center;
	font-size: 1.55rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 0.35rem;
}

.dl-login-card__subtitle {
	text-align: center;
	font-size: 0.875rem;
	color: var(--dl-text-muted);
	margin-bottom: 1.55rem;
	line-height: 1.45;
}

/* ── Form ── */
.dl-field {
	margin-bottom: 1rem;
}

.dl-field__label-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.4rem;
}

.dl-field__label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 0.4rem;
}

.dl-field__label-row .dl-field__label {
	margin-bottom: 0;
}

.dl-field__link {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--dl-brand-light);
	text-decoration: none;
}

.dl-field__link:hover {
	color: #a5b4fc;
	text-decoration: underline;
}

.dl-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.dl-input-wrap__icon {
	position: absolute;
	left: 0.85rem;
	color: rgba(255, 255, 255, 0.45);
	font-size: 0.875rem;
	pointer-events: none;
}

.dl-input {
	width: 100%;
	padding: 0.72rem 0.85rem 0.72rem 2.45rem;
	border-radius: var(--dl-input-radius);
	border: 1px solid var(--dl-input-border);
	background: var(--dl-input-bg);
	color: #fff;
	font-size: 0.9375rem;
	font-family: inherit;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.dl-input::placeholder {
	color: rgba(255, 255, 255, 0.45);
	opacity: 1;
}

.dl-input:-webkit-autofill,
.dl-input:-webkit-autofill:hover,
.dl-input:-webkit-autofill:focus,
.dl-input:-webkit-autofill:active {
	-webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.42) inset !important;
	box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.42) inset !important;
	-webkit-text-fill-color: #fff !important;
	caret-color: #fff;
	transition: background-color 99999s ease-out;
}

.dl-input:focus {
	border-color: var(--dl-brand-light);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.32);
}

.dl-input-wrap--password .dl-input {
	padding-right: 2.65rem;
}

.dl-toggle-pw {
	position: absolute;
	right: 0.75rem;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	padding: 0.25rem;
	font-size: 0.9rem;
}

.dl-toggle-pw:hover {
	color: #fff;
}

.dl-captcha-block {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.dl-captcha-img {
	flex: 0 0 128px;
	width: 128px;
	height: 44px;
	border-radius: var(--dl-input-radius);
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(228, 229, 231, 0.95);
	display: flex;
	align-items: center;
	justify-content: center;
}

.dl-captcha-img img,
.dl-captcha-img .dl-captcha-photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border: 0;
}

.dl-captcha-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: #fff;
	color: #111827;
	font-weight: 700;
	letter-spacing: 0.12em;
	font-size: 0.95rem;
}

.dl-captcha-block .dl-input-wrap {
	flex: 1 1 auto;
	min-width: 0;
}

.dl-captcha-block .dl-input {
	height: 44px;
	min-height: 44px;
	padding-top: 0;
	padding-bottom: 0;
}

.dl-captcha-refresh {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: var(--dl-input-radius);
	border: 1px solid var(--dl-input-border);
	background: var(--dl-input-bg);
	color: var(--dl-brand-light);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	transition: transform 0.25s;
}

.dl-captcha-refresh:hover {
	transform: rotate(90deg);
}

.dl-alert {
	padding: 0.7rem 0.9rem;
	border-radius: var(--dl-input-radius);
	font-size: 0.8125rem;
	margin-bottom: 0.85rem;
	line-height: 1.45;
}

.dl-alert--error {
	background: rgba(220, 38, 38, 0.22);
	border: 1px solid rgba(248, 113, 113, 0.45);
	color: #fecaca;
}

.dl-btn-primary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.8rem 1.2rem;
	margin-top: 0.25rem;
	border: none;
	border-radius: var(--dl-input-radius);
	background: linear-gradient(135deg, var(--dl-brand) 0%, var(--dl-brand-light) 100%);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	box-shadow: 0 4px 20px rgba(79, 70, 229, 0.45);
	transition: transform 0.2s, box-shadow 0.2s;
}

.dl-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 28px rgba(79, 70, 229, 0.55);
}

.dl-divider {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin: 1.3rem 0 1.05rem;
	color: rgba(255, 255, 255, 0.4);
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.dl-divider::before,
.dl-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(255, 255, 255, 0.14);
}

.dl-oauth-stack {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.dl-oauth-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
	width: 100%;
	min-height: 46px;
	padding: 0.72rem 1rem;
	border-radius: 12px;
	font-size: 0.875rem;
	font-weight: 500;
	font-family: inherit;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease,
		border-color 0.2s ease;
}

.dl-oauth-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

.dl-oauth-btn__icon svg {
	display: block;
}

.dl-oauth-btn__text {
	white-space: nowrap;
}

.dl-oauth-btn--google {
	background: #ffffff;
	color: #3c4043;
	border-color: #dadce0;
	box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}

.dl-oauth-btn--google:hover {
	background: #f8f9fa;
	border-color: #c6c9cc;
	box-shadow: 0 4px 14px rgba(60, 64, 67, 0.14);
	transform: translateY(-1px);
	color: #202124;
}

.dl-oauth-btn--google:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(60, 64, 67, 0.1);
}

.dl-oauth-btn--facebook {
	background: #1877f2;
	color: #ffffff;
	border-color: #1877f2;
	box-shadow: 0 1px 2px rgba(24, 119, 242, 0.28);
}

.dl-oauth-btn--facebook:hover {
	background: #166fe5;
	border-color: #166fe5;
	box-shadow: 0 4px 16px rgba(24, 119, 242, 0.42);
	transform: translateY(-1px);
	color: #ffffff;
}

.dl-oauth-btn--facebook:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(24, 119, 242, 0.24);
}

.dl-oauth-btn:focus-visible {
	outline: 2px solid var(--dl-brand-light);
	outline-offset: 2px;
}

.dl-oauth-btn.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

.dl-login-card__footer-links {
	display: flex;
	justify-content: space-between;
	margin-top: 1.15rem;
}

.dl-login-card__footer-links a {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
}

.dl-login-card__footer-links a:hover {
	color: var(--dl-brand-light);
}

/* Tablet / narrow desktop: keep right-aligned */
@media (max-width: 900px) {
	.dl-login-wrap {
		right: 5%;
		width: min(435px, calc(100vw - 2.5rem));
	}

}

/* Mobile: card stays right but narrower inset */
@media (max-width: 520px) {
	.dl-login-wrap {
		right: 1rem;
		left: 1rem;
		width: auto;
		max-width: none;
	}

	.dl-login-card {
		padding: 1.6rem 1.25rem 1.35rem;
	}

	.dl-captcha-block {
		flex-wrap: wrap;
	}

	.dl-captcha-img {
		flex: 0 0 100%;
		width: 100%;
	}

	.dl-captcha-block .dl-input-wrap {
		flex: 1 1 calc(100% - 52px);
	}

	.dl-captcha-refresh {
		flex: 0 0 44px;
	}

	.dl-oauth-btn {
		font-size: 0.8125rem;
		min-height: 44px;
		padding: 0.65rem 0.85rem;
	}

	.dl-oauth-btn__text {
		white-space: normal;
		text-align: center;
	}

}
