/* Front-end Login + Forgot Password — ports prototype-reference/login.html
   and forgot-password.html's auth-card design onto the theme's real tokens. */

/* Login and Forgot Password both want the card AND the site footer visible
   in one screen, no scroll — not the footer hidden. body.pb-auth-page makes
   body itself a full-height flex column so .auth-shell (flex: 1) fills
   whatever space the footer's natural height leaves, and together they
   always add up to exactly one viewport instead of overflowing it. */
body.pb-auth-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.auth-shell {
	box-sizing: border-box;
	flex: 1 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 1.2rem;
	background: var(--ink);
	background-image:
		radial-gradient(circle at 20% 20%, rgba(201, 138, 46, .12), transparent 45%),
		radial-gradient(circle at 85% 80%, rgba(47, 93, 85, .2), transparent 45%);
}

/* Login page only (not Forgot Password, which shares this same shell markup) —
   a custom bookshelf-wall illustration in the site's own palette, full-bleed
   behind the auth card. Layered under the existing accent glows above so the
   ember/ledger highlights still read on top of it. */
body.pb-login-page .auth-shell {
	background-image:
		radial-gradient(circle at 20% 20%, rgba(201, 138, 46, .16), transparent 45%),
		radial-gradient(circle at 85% 80%, rgba(47, 93, 85, .25), transparent 45%),
		url('../img/library-bg-v2.svg');
	background-size: auto, auto, cover;
	background-position: center, center, center;
	background-repeat: no-repeat, no-repeat, no-repeat;
}

.auth-wrap {
	width: 100%;
	max-width: 960px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--paper-raised);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5);
}

.auth-side {
	background: linear-gradient(160deg, #201C18, #2B241D 60%, #3A2E1D);
	color: #fff;
	padding: 3rem 2.4rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 2rem;
}

/* ---------- Brand identity box (logo + bilingual library name) — a wide
   white lockup at the top of the dark left panel. ---------- */
.auth-brand-box { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: 12px; padding: .9rem 1.3rem; }
.auth-brand-logo { height: 44px; width: auto; display: block; flex-shrink: 0; }
.auth-brand-divider { width: 2px; align-self: stretch; background: #B5432E; flex-shrink: 0; }
.auth-brand-names { display: flex; flex-direction: column; gap: .15rem; }
.auth-brand-names .hi { font-family: 'Noto Serif Devanagari', serif; font-size: .95rem; font-weight: 600; color: #B5432E; }
.auth-brand-names .en { font-family: var(--font-body); font-size: .8rem; font-weight: 600; color: #B5432E; }

/* ---------- Headline: three deliberate size tiers, per design review.
   Tier 1 (headline-lead) carries the visual weight; tier 2 (headline-sub +
   its English line) reads as one supporting pair at equal size; tier 3
   (the body paragraph below) drops again for the descriptive copy. ---------- */
.auth-side h2 { margin: 0 0 .7rem; }
.auth-side h2 .headline-lead { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1.22; text-wrap: balance; }
.auth-side h2 .headline-sub { display: block; font-size: 1.15rem; font-weight: 400; line-height: 1.45; color: #C7BFAF; margin-top: .5rem; text-wrap: balance; }
.auth-side h2 .en-secondary { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 400; color: #C7BFAF; line-height: 1.45; margin-top: .2rem; }
.auth-side p { font-size: .85rem; color: #C7BFAF; max-width: 30ch; line-height: 1.6; margin: 0; }
.auth-side p .en-secondary { color: #A9A296; margin-top: .35rem; }
.auth-side .quote { padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .74rem; color: #A9A296; font-family: var(--font-mono); letter-spacing: .03em; }

/* ---------- Tagline / description — centered per design review. Hindi
   headline runs noticeably longer than its English line, so both get a
   little more breathing room than the original English-only copy needed. ---------- */
.auth-tagline { text-align: center; }
.auth-tagline h2 { max-width: 34ch; margin-left: auto; margin-right: auto; }
.auth-tagline p { max-width: 36ch; margin: 0 auto; }

/* ---------- Hindi-first pattern (auth-form only): Hindi is the primary
   line, inheriting whatever heading/label style it sits inside. English
   follows as a smaller, muted secondary line via this reusable class. ---------- */
.en-secondary { display: block; font-family: var(--font-body); font-weight: 400; }

.auth-form { padding: 3rem 2.6rem; }
/* Hidden on desktop, where .auth-side already carries this same brand box —
   shown only below 760px once .auth-side disappears (see the max-width:760px
   block further down), same reasoning .single-card's own copy already
   follows (it's a single-column page at every width, so it never hides). */
.auth-form-mobile-brand { display: none; }
.auth-form h1 { font-size: 1.5rem; margin: 0 0 .75rem; }
.auth-form h1 .en-secondary { font-family: var(--font-display); font-size: 1rem; font-weight: 400; color: var(--ink-faint); margin-top: .15rem; }
.hi-line { font-family: 'Noto Serif Devanagari', serif; font-size: .88rem; color: var(--ink-faint); margin-bottom: 1.8rem; }
.hi-line .en-secondary { font-family: var(--font-body); font-size: .78rem; color: var(--slate); margin-top: .2rem; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .78rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink); }
.field input,
input[type="text"].auth-input { width: 100%; }

.auth-shell input[type="text"],
.auth-shell input[type="password"],
.auth-shell input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	padding: .7rem .85rem;
	border: 1px solid var(--border);
	border-radius: 7px;
	font-family: var(--font-body);
	font-size: .88rem;
	background: #fff;
	color: var(--ink);
}
.auth-shell input:focus { outline: 2px solid var(--accent-employee-amber); outline-offset: 1px; border-color: var(--accent-employee-amber); }

.row-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; font-size: .8rem; }
.row-between label { display: flex; align-items: center; gap: .4rem; font-weight: 400; margin: 0; }
.row-between a { color: var(--accent-employee-amber); font-weight: 600; text-decoration: none; }
.row-between a:hover { text-decoration: underline; }

.btn-submit {
	width: 100%;
	background: var(--accent-employee-amber);
	color: var(--ink);
	font-weight: 700;
	font-size: .9rem;
	padding: .8rem;
	border: none;
	border-radius: 7px;
	cursor: pointer;
	margin-bottom: 1.3rem;
}
.btn-submit:hover { background: #B57A22; color: #fff; }
.btn-submit.dark { background: var(--ink); color: #fff; margin-bottom: 0; }
.btn-submit.dark:hover { background: var(--accent-employee-amber); color: var(--ink); }

.divider { display: flex; align-items: center; gap: .7rem; font-size: .72rem; color: var(--slate); margin-bottom: 1.3rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.signup-link { text-align: center; font-size: .85rem; }
.signup-link a, .signup-link a.ledger { color: var(--accent-employee-ledger); font-weight: 700; text-decoration: none; }
.signup-link a:hover { text-decoration: underline; }

.banner {
	font-size: .82rem;
	padding: .75rem .9rem;
	border-radius: 8px;
	margin-bottom: 1.1rem;
	line-height: 1.5;
}
.banner.error { background: #F3DAD3; color: #7A2E1E; }
.banner.success { background: #DCE9E5; color: #1F4D3F; }

/* Single-card layout — Forgot Password */
.single-card {
	width: 100%;
	max-width: 440px;
	background: var(--paper-raised);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 2.6rem 2.4rem;
	box-shadow: 0 20px 50px -25px rgba(32, 28, 24, .35);
}
.single-card .auth-brand-box { margin-bottom: 1.6rem; border: 1px solid var(--border); }
.single-card h1 { font-size: 1.5rem; margin: 0 0 .3rem; }
.single-card h1 .en-secondary { font-family: var(--font-display); font-size: 1rem; color: var(--ink-faint); margin-top: .15rem; }
.single-card p.desc { font-size: .85rem; color: var(--ink-faint); line-height: 1.55; margin: 0 0 1.6rem; }
.single-card p.desc .en-secondary { margin-top: .3rem; }
.single-card .login-link { text-align: center; font-size: .85rem; margin-top: 1.3rem; }
.single-card .login-link a { color: var(--accent-employee-ledger); font-weight: 700; text-decoration: none; }
.single-card .login-link a:hover { text-decoration: underline; }

.fp-icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #DCE9E5;
	color: var(--accent-employee-ledger);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
}

@media (max-width: 760px) {
	.auth-wrap { grid-template-columns: 1fr; }
	.auth-side { display: none; }
	.auth-form-mobile-brand { display: flex; margin-bottom: 1rem; border: 1px solid var(--border); }
	/* Tighter vertical rhythm than desktop's two-column card needs — the
	   brand box above added real height to an already-scrolling mobile
	   screen, so the rest of the card gives some back. */
	.auth-form { padding: 2rem; }
	.auth-form h1 { font-size: 1.4rem; }
	.hi-line { margin-bottom: 1.4rem; }
	.divider { margin-bottom: 1rem; }
}
