/* ============================================================
   TOKENS
   ============================================================ */
:root {
--orange:        #F97316;
--orange-dark:   #EA6A0A;
--orange-glow:   rgba(249,115,22,.14);
--orange-ring:   rgba(249,115,22,.18);
--black:         #0D0D0D;
--text-1:        #0D0D0D;
--text-2:        #6B7280;
--text-3:        #9CA3AF;
--border:        #E5E7EB;
--bg-input:      #FAFAFA;
--success:       #22C55E;
--danger:        #EF4444;
--ease:          cubic-bezier(.4,0,.2,1);
--t:             .22s var(--ease);
}

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

body {
font-family: 'Inter', sans-serif;
-webkit-font-smoothing: antialiased;
min-height: 100vh;
overflow-x: hidden;
}

/* ============================================================
   LAYOUT — full-screen split
   ============================================================ */
.login-page {
display: grid;
grid-template-columns: 1fr 1fr;
min-height: 100vh;
}

/* ============================================================
   LEFT PANEL — cinematic dark
   ============================================================ */
.login-left {
background: var(--black);
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 2.5rem 3rem 2.5rem;
}

/* Subtle grid */
.login-left::before {
content: '';
position: absolute;
inset: 0;
background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
background-size: 52px 52px;
pointer-events: none;
}

/* Orange ambient glow */
.left-glow-1 {
position: absolute;
top: -120px;
right: -80px;
width: 480px;
height: 480px;
background: radial-gradient(circle, rgba(249,115,22,.12) 0%, transparent 65%);
border-radius: 50%;
pointer-events: none;
}

.left-glow-2 {
position: absolute;
bottom: -80px;
left: -80px;
width: 320px;
height: 320px;
background: radial-gradient(circle, rgba(249,115,22,.06) 0%, transparent 70%);
border-radius: 50%;
pointer-events: none;
}

/* Decorative large scissors */
.left-deco-scissors {
position: absolute;
bottom: -20px;
right: -20px;
font-size: 22rem;
line-height: 1;
color: rgba(255,255,255,.018);
pointer-events: none;
user-select: none;
font-family: 'Bootstrap Icons', sans-serif;
}

/* ── Top: Logo row ── */
.left-logo {
display: flex;
align-items: center;
gap: 10px;
position: relative;
z-index: 1;
text-decoration: none;
}

.left-logo-icon {
width: 44px;
height: 44px;
object-fit: contain;
filter: drop-shadow(0 0 8px rgba(249,115,22,.6));
}

.left-logo-text {
font-size: 1rem;
font-weight: 900;
letter-spacing: -.02em;
color: white;
}

.left-logo-text span { color: var(--orange); }

/* ── Middle: headline block ── */
.left-body {
position: relative;
z-index: 1;
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
padding: 2rem 0;
}

.left-overline {
display: inline-flex;
align-items: center;
gap: 8px;
font-size: .65rem;
font-weight: 700;
letter-spacing: .18em;
text-transform: uppercase;
color: var(--orange);
margin-bottom: 1.5rem;
}

.left-overline::before {
content: '';
display: block;
width: 20px;
height: 1.5px;
background: var(--orange);
border-radius: 2px;
}

.left-headline {
font-size: clamp(2rem, 2.8vw, 2.8rem);
font-weight: 900;
letter-spacing: -.03em;
line-height: 1.06;
color: white;
margin-bottom: 1.25rem;
}

.left-headline .accent { color: var(--orange); }

.left-sub {
font-size: .95rem;
color: rgba(255,255,255,.45);
line-height: 1.72;
max-width: 360px;
margin-bottom: 2.5rem;
}

/* Stats row */
.left-stats {
display: flex;
gap: 1.25rem;
margin-bottom: 2rem;
flex-wrap: wrap;
}

.left-stat {
background: rgba(255,255,255,.05);
border: 1px solid rgba(255,255,255,.08);
border-radius: 14px;
padding: .875rem 1.1rem;
flex: 1;
min-width: 90px;
}

.left-stat-num {
font-size: 1.3rem;
font-weight: 900;
color: var(--orange);
letter-spacing: -.02em;
line-height: 1;
margin-bottom: 3px;
}

.left-stat-lbl {
font-size: .62rem;
font-weight: 600;
color: rgba(255,255,255,.3);
letter-spacing: .1em;
text-transform: uppercase;
}

/* Glassmorphism floating card */
.left-float-card {
background: rgba(255,255,255,.06);
border: 1px solid rgba(255,255,255,.1);
border-radius: 18px;
padding: 1.1rem 1.35rem;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
display: inline-flex;
align-items: center;
gap: 1rem;
max-width: 320px;
animation: cardFloat 5s ease-in-out infinite;
}

@keyframes cardFloat {
0%, 100% { transform: translateY(0); }
50%       { transform: translateY(-6px); }
}

.float-card-icon {
width: 40px;
height: 40px;
background: rgba(249,115,22,.18);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
color: var(--orange);
font-size: 1.1rem;
flex-shrink: 0;
}

.float-card-label {
font-size: .62rem;
font-weight: 700;
letter-spacing: .1em;
text-transform: uppercase;
color: rgba(255,255,255,.35);
margin-bottom: 2px;
}

.float-card-value {
font-size: 1.05rem;
font-weight: 800;
color: white;
letter-spacing: -.01em;
}

/* ── Bottom: testimonial quote ── */
.left-quote {
position: relative;
z-index: 1;
}

.left-quote-text {
font-size: .85rem;
color: rgba(255,255,255,.4);
line-height: 1.6;
font-style: italic;
margin-bottom: .75rem;
}

.left-quote-author {
display: flex;
align-items: center;
gap: 10px;
}

.quote-avatar {
width: 32px;
height: 32px;
background: var(--orange);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 900;
font-size: .8rem;
flex-shrink: 0;
}

.quote-name {
font-size: .78rem;
font-weight: 700;
color: rgba(255,255,255,.6);
}

.quote-role {
font-size: .68rem;
color: rgba(255,255,255,.3);
margin-top: 1px;
}

/* ============================================================
   RIGHT PANEL — white form
   ============================================================ */
.login-right {
background: white;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 2.5rem 2rem;
position: relative;
overflow-y: auto;
}

/* Subtle top border accent */
.login-right::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, transparent, var(--orange), transparent);
opacity: .5;
}

.form-card {
width: 100%;
max-width: 400px;
}

/* Back link */
.back-link {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: .8rem;
font-weight: 600;
color: var(--text-3);
text-decoration: none;
margin-bottom: 2.5rem;
transition: color var(--t);
}

.back-link:hover { color: var(--text-1); }

/* Form header */
.form-header { margin-bottom: 2rem; }

.form-heading {
font-size: 1.75rem;
font-weight: 900;
letter-spacing: -.03em;
color: var(--text-1);
margin-bottom: .4rem;
line-height: 1.1;
}

.form-subheading {
font-size: .875rem;
color: var(--text-3);
line-height: 1.5;
}

.form-subheading a {
color: var(--orange);
font-weight: 600;
text-decoration: none;
}

.form-subheading a:hover { color: var(--orange-dark); }

/* ── Alert messages ── */
.auth-alert {
display: flex;
align-items: flex-start;
gap: 10px;
padding: .875rem 1rem;
border-radius: 12px;
font-size: .85rem;
font-weight: 500;
margin-bottom: 1.5rem;
line-height: 1.5;
}

.auth-alert i { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

.auth-alert-error {
background: rgba(239,68,68,.07);
border: 1px solid rgba(239,68,68,.18);
color: #DC2626;
}

.auth-alert-error i { color: #EF4444; }

.auth-alert-success {
background: rgba(34,197,94,.07);
border: 1px solid rgba(34,197,94,.18);
color: #16A34A;
}

.auth-alert-success i { color: #22C55E; }

/* ── Field ── */
.field-row { margin-bottom: 1.1rem; }

.field-label {
display: block;
font-size: .78rem;
font-weight: 700;
color: var(--text-2);
margin-bottom: .45rem;
letter-spacing: .01em;
}

.field-wrap {
position: relative;
}

.field-icon {
position: absolute;
left: 14px;
top: 50%;
transform: translateY(-50%);
color: var(--text-3);
font-size: .95rem;
pointer-events: none;
z-index: 2;
transition: color var(--t);
}

.field-input {
width: 100%;
padding: .825rem 3rem .825rem 2.6rem;
border: 1.5px solid var(--border);
border-radius: 12px;
font-size: .9rem;
font-family: 'Inter', sans-serif;
color: var(--text-1);
background: var(--bg-input);
transition: border-color var(--t), box-shadow var(--t), background var(--t);
outline: none;
}

.field-input::placeholder { color: var(--text-3); }

.field-input:focus {
border-color: var(--orange);
background: white;
box-shadow: 0 0 0 4px var(--orange-ring);
}

.field-input:focus + .field-icon,
.field-wrap:focus-within .field-icon {
color: var(--orange);
}

/* Override icon position — icon is BEFORE input in DOM but styled with absolute left */
/* We need icon inside wrap, before input; use sibling trick */
.field-wrap .field-icon { pointer-events: none; }

/* Password toggle button */
.pwd-toggle {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
color: var(--text-3);
font-size: .95rem;
cursor: pointer;
padding: 4px;
z-index: 3;
transition: color var(--t);
line-height: 1;
}

.pwd-toggle:hover { color: var(--orange); }

/* ── Remember + Forgot row ── */
.form-options {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1.5rem;
}

.remember-label {
display: flex;
align-items: center;
gap: 7px;
font-size: .8rem;
color: var(--text-2);
cursor: pointer;
user-select: none;
}

.remember-checkbox {
width: 16px;
height: 16px;
border: 1.5px solid var(--border);
border-radius: 5px;
appearance: none;
-webkit-appearance: none;
background: white;
cursor: pointer;
position: relative;
flex-shrink: 0;
transition: border-color var(--t), background var(--t);
}

.remember-checkbox:checked {
background: var(--orange);
border-color: var(--orange);
}

.remember-checkbox:checked::after {
content: '';
position: absolute;
left: 4px;
top: 1.5px;
width: 5px;
height: 9px;
border: 2px solid white;
border-top: none;
border-left: none;
transform: rotate(45deg);
}

.forgot-link {
font-size: .8rem;
font-weight: 600;
color: var(--text-3);
text-decoration: none;
transition: color var(--t);
}

.forgot-link:hover { color: var(--orange); }

/* ── Submit button ── */
.btn-submit {
width: 100%;
padding: .9rem;
background: var(--orange);
color: white;
font-family: 'Inter', sans-serif;
font-size: .95rem;
font-weight: 700;
border: none;
border-radius: 12px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: background var(--t), transform var(--t), box-shadow var(--t);
box-shadow: 0 4px 14px rgba(249,115,22,.3);
position: relative;
overflow: hidden;
margin-bottom: 1.25rem;
}

.btn-submit::before {
content: '';
position: absolute;
inset: 0;
background: rgba(255,255,255,.12);
transform: translateX(-100%);
transition: transform .4s var(--ease);
}

.btn-submit:hover::before { transform: translateX(0); }

.btn-submit:hover {
background: var(--orange-dark);
transform: translateY(-1px);
box-shadow: 0 8px 20px rgba(249,115,22,.35);
}

.btn-submit:active { transform: translateY(0); }

.btn-submit:disabled {
opacity: .55;
transform: none;
box-shadow: none;
cursor: not-allowed;
}

.btn-submit .spinner {
width: 18px;
height: 18px;
border: 2.5px solid rgba(255,255,255,.35);
border-top-color: white;
border-radius: 50%;
animation: spin .7s linear infinite;
flex-shrink: 0;
display: none;
}

@keyframes spin {
to { transform: rotate(360deg); }
}

.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-text { opacity: .75; }

/* ── Divider ── */
.form-divider {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 1.25rem;
}

.form-divider::before,
.form-divider::after {
content: '';
flex: 1;
height: 1px;
background: var(--border);
}

.form-divider span {
font-size: .72rem;
font-weight: 600;
color: var(--text-3);
letter-spacing: .08em;
text-transform: uppercase;
white-space: nowrap;
}

/* ── Google button ── */
.btn-google {
width: 100%;
padding: .825rem;
background: white;
border: 1.5px solid var(--border);
border-radius: 12px;
font-family: 'Inter', sans-serif;
font-size: .875rem;
font-weight: 600;
color: var(--text-1);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
transition: border-color var(--t), background var(--t), box-shadow var(--t), transform var(--t);
margin-bottom: 1.5rem;
}

.btn-google:hover {
border-color: #D1D5DB;
background: #FAFAFA;
box-shadow: 0 2px 12px rgba(0,0,0,.08);
transform: translateY(-1px);
}

.google-icon {
width: 18px;
height: 18px;
flex-shrink: 0;
}

/* ── Register prompt ── */
.register-prompt {
text-align: center;
font-size: .82rem;
color: var(--text-3);
}

.register-prompt a {
color: var(--text-1);
font-weight: 700;
text-decoration: none;
transition: color var(--t);
}

.register-prompt a:hover { color: var(--orange); }

/* ── Footer note ── */
.form-footer-note {
margin-top: 2rem;
padding-top: 1.5rem;
border-top: 1px solid var(--border);
text-align: center;
font-size: .72rem;
color: var(--text-3);
line-height: 1.6;
}

.form-footer-note a {
color: var(--text-3);
text-decoration: underline;
text-underline-offset: 2px;
}

/* ============================================================
   ANIMATIONS — entry
   ============================================================ */
@keyframes slideInLeft {
from { opacity: 0; transform: translateX(-24px); }
to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
from { opacity: 0; transform: translateX(24px); }
to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeUp {
from { opacity: 0; transform: translateY(16px); }
to   { opacity: 1; transform: translateY(0); }
}

.login-left {
animation: slideInLeft .6s cubic-bezier(.22,1,.36,1) both;
}

.login-right {
animation: slideInRight .6s cubic-bezier(.22,1,.36,1) both;
}

.form-card { animation: fadeUp .55s cubic-bezier(.22,1,.36,1) .12s both; }

/* Stagger form elements */
.form-header    { animation: fadeUp .5s cubic-bezier(.22,1,.36,1) .18s both; }
.field-row:nth-child(1) { animation: fadeUp .5s cubic-bezier(.22,1,.36,1) .24s both; }
.field-row:nth-child(2) { animation: fadeUp .5s cubic-bezier(.22,1,.36,1) .30s both; }
.form-options   { animation: fadeUp .5s cubic-bezier(.22,1,.36,1) .36s both; }
.btn-submit     { animation: fadeUp .5s cubic-bezier(.22,1,.36,1) .42s both; }

/* ============================================================
   RESPONSIVE — mobile
   ============================================================ */
@media (max-width: 991px) {
.login-page {
    grid-template-columns: 1fr;
}

.login-left {
    /* Show a condensed banner version on mobile */
    min-height: auto;
    padding: 1.75rem 1.5rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    animation: none;
}

.login-left .left-body,
.login-left .left-quote {
    display: none;
}

.left-glow-1,
.left-glow-2,
.left-deco-scissors { display: none; }

.login-left::before { display: none; }

.left-stats {
    display: none;
}

.left-float-card { display: none; }

/* Mobile top bar shows just logo + tagline */
.left-headline { display: none; }
.left-sub { display: none; }
.left-overline { display: none; }

.left-body {
    display: flex !important;
    padding: 0;
}

.left-body > * { display: none !important; }

.left-body .left-overline { display: none !important; }

/* On mobile show a minimal header strip */
.mobile-left-content {
    display: flex !important;
}

.login-right {
    animation: none;
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 80px);
}

.back-link { margin-bottom: 1.75rem; }
}

@media (min-width: 992px) {
.mobile-left-content { display: none; }
}

@media (max-width: 991px) {
.login-left {
    padding: 1.25rem 1.5rem;
    min-height: 72px;
}
}

/* ============================================================
   VALIDATION STATES
   ============================================================ */
.field-input.is-invalid {
border-color: var(--danger);
box-shadow: 0 0 0 4px rgba(239,68,68,.1);
}

.field-input.is-valid {
border-color: var(--success);
}
