/* ── Login Page ── */
* { box-sizing: border-box; }
body { font-family: var(--font-body); background: var(--espresso); min-height: 100vh; overflow-x: hidden; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }

.login-left { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; }
.login-left-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); animation: kenBurns 20s ease-in-out infinite alternate; }
.login-left-gradient { background: linear-gradient(145deg, var(--espresso) 0%, #3A2A1E 35%, var(--brown-mid) 65%, #2A1E15 100%); }
@keyframes kenBurns { from { transform: scale(1.05) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1%); } }
.login-left-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(28,20,16,0.88) 0%, rgba(74,55,40,0.70) 50%, rgba(28,20,16,0.85) 100%); }
.login-left-content { position: relative; z-index: 2; }
.login-brand { display: flex; align-items: center; gap: 14px; }
.login-brand .logo-mark { border-color: rgba(154,123,79,0.7); }
.login-brand .logo-name { color: var(--white); }
.login-brand .logo-tagline { color: var(--gold-light); }

.login-left-body { position: relative; z-index: 2; max-width: 400px; }
.login-welcome-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.login-welcome-title { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 300; color: var(--white); line-height: 1.15; margin-bottom: 20px; }
.login-welcome-title em { font-style: italic; color: var(--gold-light); }
.login-welcome-text { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.75; margin-bottom: 36px; }
.login-left-features { display: flex; flex-direction: column; gap: 14px; }
.login-feature { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.login-feature-dot { width: 28px; height: 28px; min-width: 28px; border: 1px solid rgba(154,123,79,0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.login-feature-dot svg { width: 13px; height: 13px; stroke: var(--gold); }
.login-left-footer { position: relative; z-index: 2; font-size: 0.72rem; color: rgba(255,255,255,0.25); letter-spacing: 0.05em; }

.login-right { background: var(--ivory); display: flex; align-items: center; justify-content: center; padding: 60px 40px; position: relative; }
.login-right::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, var(--gold), transparent); }

.login-box { width: 100%; max-width: 420px; }
.login-box-header { margin-bottom: 40px; }
.login-box-eyebrow { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.login-box-title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 300; color: var(--espresso); line-height: 1.2; margin-bottom: 8px; }
.login-box-title em { font-style: italic; color: var(--gold); }
.login-box-sub { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

.login-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 32px; gap: 0; }
.login-tab { flex: 1; padding: 12px 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); text-align: center; position: relative; cursor: pointer; transition: color 0.3s; border: none; background: none; font-family: var(--font-body); }
.login-tab::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform 0.3s var(--ease-smooth); }
.login-tab.active { color: var(--gold); }
.login-tab.active::after { transform: scaleX(1); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.login-form .form-group { margin-bottom: 18px; }
.login-form .form-control { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.92rem; }

.password-wrap { position: relative; }
.password-toggle { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 4px; transition: color 0.2s; }
.password-toggle:hover { color: var(--gold); }
.password-toggle svg { width: 18px; height: 18px; }

.login-extras { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.login-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.login-check input { accent-color: var(--gold); }
.login-check span { font-size: 0.82rem; color: var(--text-muted); }
.forgot-link { font-size: 0.82rem; color: var(--gold); transition: opacity 0.2s; }
.forgot-link:hover { opacity: 0.7; }

.login-submit { width: 100%; padding: 15px; justify-content: center; font-size: 0.8rem; letter-spacing: 0.2em; }

.login-back { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.8rem; color: var(--text-muted); margin-top: 24px; }
.login-back a { color: var(--gold); font-weight: 500; }
.login-back a:hover { text-decoration: underline; }

.login-deco { position: absolute; border-radius: 50%; pointer-events: none; animation: float 8s ease-in-out infinite; }
.login-deco-1 { width: 300px; height: 300px; top: -100px; right: -100px; background: radial-gradient(circle, rgba(154,123,79,0.06) 0%, transparent 70%); animation-delay: 0s; }
.login-deco-2 { width: 200px; height: 200px; bottom: -60px; left: -60px; background: radial-gradient(circle, rgba(154,123,79,0.04) 0%, transparent 70%); animation-delay: 3s; }
@keyframes float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-20px) scale(1.05); } }

#login-message.success { background: rgba(39,174,96,0.1); border-left: 3px solid #27ae60; color: #27ae60; }
#login-message.error { background: rgba(192,57,43,0.1); border-left: 3px solid #c0392b; color: #c0392b; }

@media (max-width: 900px) { .login-page { grid-template-columns: 1fr; } .login-left { min-height: 40vh; padding: 32px 24px; } .login-right { padding: 48px 24px; } }
@media (max-width: 500px) { .login-left { display: none; } .login-right::before { display: none; } }
