/* ============================================================
   LinguaLearn — Auth Design System
   Primary: #1a3a5c · Navy: #1e3a6e · Accent: #3b82f6
   ============================================================ */

:root {
    --ll-primary:   #1a3a5c;
    --ll-navy:      #1e3a6e;
    --ll-accent:    #3b82f6;
    --ll-border:    #d1d5db;
    --ll-text-sec:  #6b7280;
    --ll-bg:        #f8f9fa;
}

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

.ll-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    display: flex;
}

/* ── Split wrapper ────────────────────────────────────────── */
.ll-split {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ── Left hero panel ──────────────────────────────────────── */
.ll-hero {
    width: 50%;
    flex-shrink: 0;
    background:
        linear-gradient(160deg, rgba(10,24,50,.82) 0%, rgba(22,52,96,.72) 60%, rgba(30,58,110,.80) 100%),
        linear-gradient(135deg, #0f1f3d 0%, #1a3a5c 40%, #1e3a6e 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.ll-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
}
.ll-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,.03);
}

/* Logo block */
.ll-hero-top { position: relative; z-index: 1; }
.ll-logo-row { display: flex; align-items: center; gap: .85rem; }
.ll-logo-icon {
    width: 44px; height: 44px; border-radius: .55rem; flex-shrink: 0;
    background: rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; color: #fff;
}
.ll-logo-img {
    height: 38px; object-fit: contain;
    filter: brightness(0) invert(1);
}
.ll-logo-text { line-height: 1.2; }
.ll-logo-name {
    font-size: .95rem; font-weight: 700; color: #fff; letter-spacing: .02em;
}
.ll-logo-sub {
    font-size: .62rem; color: rgba(255,255,255,.55);
    letter-spacing: .1em; text-transform: uppercase;
}

/* Quote block */
.ll-hero-bottom { position: relative; z-index: 1; }
.ll-quote {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin: 0 0 .85rem 0;
}
.ll-quote-attr {
    font-size: .82rem; color: rgba(255,255,255,.6);
}

/* ── Right form panel ─────────────────────────────────────── */
.ll-panel {
    flex: 1;
    background: var(--ll-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 2rem;
    position: relative;
    overflow-y: auto;
    min-height: 100vh;
}

/* Globe decoration */
.ll-globe {
    position: absolute;
    top: -20px; right: -20px;
    font-size: 9rem;
    color: var(--ll-accent);
    opacity: .06;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

.ll-panel-inner {
    position: relative; z-index: 1;
    width: 100%; max-width: 400px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding: 1rem 0;
}

/* Page heading */
.ll-title {
    font-size: 1.6rem; font-weight: 700;
    color: var(--ll-primary);
    margin-bottom: .4rem;
    line-height: 1.25;
}
.ll-subtitle {
    font-size: .88rem; color: var(--ll-text-sec);
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

/* ── Field ──────────────────────────────────────────────────── */
.ll-field { margin-bottom: 1.1rem; }
.ll-label {
    display: block;
    font-size: .7rem; font-weight: 600;
    color: var(--ll-accent);
    letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: .4rem;
}
.ll-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.ll-input-icon {
    position: absolute;
    left: .9rem;
    color: #9ca3af;
    font-size: .82rem;
    pointer-events: none;
    z-index: 2;
}
.ll-input-icon-right {
    position: absolute;
    right: .9rem;
    color: #9ca3af;
    font-size: .82rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    line-height: 1;
}
.ll-input {
    width: 100%;
    padding: .75rem 1rem .75rem 2.6rem;
    border: 1px solid var(--ll-border);
    border-radius: 8px;
    font-size: .9rem;
    background: #fff;
    color: #111827;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.ll-input:focus {
    border-color: var(--ll-primary);
    box-shadow: 0 0 0 3px rgba(26,58,92,.12);
}
.ll-input::placeholder { color: #d1d5db; }
.ll-input-wrap .ll-input { padding-right: 2.8rem; }
.ll-input-plain { padding-left: 1rem !important; }

/* ── Primary button ─────────────────────────────────────────── */
.ll-btn {
    width: 100%; padding: .85rem 1.5rem;
    background: var(--ll-navy);
    color: #fff; border: none;
    border-radius: 8px;
    font-size: .82rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    transition: background .2s, transform .15s, box-shadow .2s;
    margin-top: .25rem;
}
.ll-btn:hover {
    background: #162d5a;
    box-shadow: 0 4px 16px rgba(26,58,92,.3);
    transform: translateY(-1px);
}
.ll-btn:active { transform: translateY(0); }

/* ── Links ──────────────────────────────────────────────────── */
.ll-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    margin-top: 1rem;
    font-size: .82rem;
}
.ll-link {
    color: var(--ll-accent);
    text-decoration: none;
}
.ll-link:hover { text-decoration: underline; color: var(--ll-primary); }

/* ── Divider ────────────────────────────────────────────────── */
.ll-divider {
    display: flex; align-items: center; gap: .75rem;
    margin: 1.25rem 0 1rem;
    color: #9ca3af; font-size: .68rem;
    letter-spacing: .08em; text-transform: uppercase;
}
.ll-divider::before, .ll-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--ll-border);
}

/* ── SSO buttons ────────────────────────────────────────────── */
.ll-sso-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.ll-sso-btn {
    padding: .6rem .75rem;
    background: #fff;
    border: 1px solid var(--ll-border);
    border-radius: 8px;
    font-size: .75rem; color: #374151;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: .45rem;
    transition: border-color .2s, box-shadow .15s;
}
.ll-sso-btn:hover {
    border-color: var(--ll-primary);
    box-shadow: 0 2px 8px rgba(26,58,92,.1);
}

/* ── Footer ─────────────────────────────────────────────────── */
.ll-footer {
    position: relative; z-index: 1;
    text-align: center;
    padding-top: 1.25rem;
    font-size: .68rem;
    color: #9ca3af;
    line-height: 1.8;
}
.ll-footer a { color: #9ca3af; text-decoration: none; }
.ll-footer a:hover { color: var(--ll-accent); }

/* ── Alert box (info/hint) ──────────────────────────────────── */
.ll-alert {
    background: #eff6ff; border: 1px solid #bfdbfe;
    border-radius: 8px; padding: .75rem 1rem;
    font-size: .82rem; color: #1d4ed8;
    margin-bottom: 1.25rem;
    display: flex; gap: .6rem; align-items: flex-start;
}

/* ── Steps ──────────────────────────────────────────────────── */
.ll-steps {
    display: flex; flex-direction: column; gap: .65rem;
    background: #fff; border-radius: 8px; padding: 1rem 1.1rem;
    border: 1px solid var(--ll-border);
    margin-bottom: 1.4rem;
}
.ll-step { display: flex; align-items: flex-start; gap: .75rem; font-size: .82rem; color: #374151; }
.ll-step-num {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    background: var(--ll-navy); color: #fff;
    font-size: .65rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ll-hero { display: none; }
    .ll-split { flex-direction: column; }
    .ll-panel { min-height: 100vh; padding: 2rem 1.25rem; }
    .ll-panel-inner { max-width: 100%; padding: 0; }
    .ll-title { font-size: 1.35rem; }
    .ll-quote { font-size: 1.25rem; }
}

/* ── Mobile top logo bar (replaces hidden hero) ─────────────── */
.ll-mobile-header {
    display: none;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.75rem;
}
@media (max-width: 768px) {
    .ll-mobile-header { display: flex; }
}
.ll-mobile-logo {
    height: 36px; object-fit: contain;
}
.ll-mobile-brand {
    font-size: .85rem; font-weight: 700; color: var(--ll-primary);
}
