:root {
    --lb-bg: #eef2f7;
    --lb-navy: #0f1f38;
    --lb-navy-soft: #1b3153;
    --lb-primary: #2257d6;
    --lb-primary-dark: #1946b0;
    --lb-primary-soft: #edf3ff;
    --lb-text: #172033;
    --lb-muted: #667085;
    --lb-border: #dfe5ee;
    --lb-surface: #ffffff;
    --lb-success: #087a55;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    font-family: "Sarabun", "Segoe UI", Tahoma, sans-serif;
    color: var(--lb-text);
    background:
        radial-gradient(circle at 10% 10%, rgba(34,87,214,.10), transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(15,31,56,.08), transparent 28%),
        var(--lb-bg);
    font-size: 15px;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 36px;
}

.auth-card {
    width: min(1120px, 100%);
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
    background: var(--lb-surface);
    border: 1px solid rgba(15,31,56,.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15,31,56,.15);
}

.auth-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 42px 48px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(15,31,56,.98), rgba(25,57,101,.96)),
        var(--lb-navy);
    overflow: hidden;
}
.auth-brand-panel::before,
.auth-brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.auth-brand-panel::before {
    width: 360px;
    height: 360px;
    right: -160px;
    top: -110px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.018);
}
.auth-brand-panel::after {
    width: 220px;
    height: 220px;
    left: -120px;
    bottom: -100px;
    background: rgba(34,87,214,.22);
    filter: blur(2px);
}

.brand-lockup { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; }
.brand-mark {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(145deg, #3974ff, #1d4fc2);
    box-shadow: 0 10px 24px rgba(0,0,0,.2);
}
.brand-screen {
    position: absolute;
    width: 23px;
    height: 16px;
    left: 8px;
    top: 9px;
    border: 2px solid #fff;
    border-radius: 3px;
}
.brand-screen::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 2px;
    background: #fff;
    left: 5px;
    bottom: -6px;
}
.brand-person {
    position: absolute;
    width: 10px;
    height: 10px;
    right: 7px;
    bottom: 9px;
    border-radius: 50%;
    background: #fff;
}
.brand-person::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 7px;
    left: -3px;
    top: 9px;
    border-radius: 8px 8px 3px 3px;
    background: #fff;
}
.brand-name { font-size: 25px; line-height: 1; font-weight: 800; letter-spacing: -.025em; }
.brand-tagline { margin-top: 5px; color: #aebbd0; font-size: 12.5px; letter-spacing: .015em; }
.organization-lockup {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    max-width: 100%;
    margin-top: 20px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(255,255,255,.055);
}
.organization-lockup-logo,
.organization-lockup-fallback {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 9px;
}
.organization-lockup-logo { object-fit: contain; background: #fff; padding: 4px; }
.organization-lockup-fallback { display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; font-size: 11px; font-weight: 800; }
.organization-lockup strong { display: block; font-size: 13px; line-height: 1.35; }
.organization-lockup span:not(.organization-lockup-fallback) { display: block; margin-top: 2px; color: #aebbd0; font-size: 11px; line-height: 1.4; }

.hero-copy {
    position: relative;
    z-index: 1;
    margin: auto 0;
    max-width: 625px;
    padding: 42px 0;
}
.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: #8eb0ff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .11em;
}
.hero-copy h1 {
    max-width: 610px;
    margin: 0;
    font-size: clamp(32px, 3.15vw, 42px);
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: -.018em;
    text-wrap: balance;
}
.hero-copy p {
    max-width: 600px;
    margin: 20px 0 0;
    color: #c8d2e0;
    font-size: 15.5px;
    line-height: 1.75;
}

.feature-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.feature-item { display: flex; align-items: flex-start; gap: 10px; padding: 14px 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.045); }
.feature-icon { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(83,130,255,.18); color: #a8c0ff; font-size: 10.5px; font-weight: 800; }
.feature-item strong { display: block; font-size: 13px; font-weight: 700; line-height: 1.35; }
.feature-item div span { display: block; margin-top: 4px; color: #aab6c8; font-size: 11.5px; line-height: 1.5; }

.auth-action-panel { display: flex; flex-direction: column; background: #fff; }
.action-inner { width: 100%; max-width: 400px; margin: auto; padding: 54px 42px 38px; }
.status-badge { display: inline-flex; align-items: center; min-height: 27px; padding: 0 10px; border-radius: 999px; background: var(--lb-primary-soft); color: var(--lb-primary); font-size: 11px; font-weight: 800; letter-spacing: .07em; }
.action-inner h2 { margin: 16px 0 0; font-size: 29px; line-height: 1.3; font-weight: 700; letter-spacing: -.018em; }
.action-description { margin: 10px 0 28px; color: var(--lb-muted); font-size: 15px; line-height: 1.7; }

.google-button,
.primary-button,
.secondary-button {
    width: 100%;
    min-height: 50px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    font-size: 14.5px;
    font-weight: 650;
    transition: .16s ease;
}
.google-button,
.primary-button { color: #fff; background: var(--lb-primary); box-shadow: 0 8px 18px rgba(34,87,214,.18); }
.google-button:hover,
.primary-button:hover { background: var(--lb-primary-dark); transform: translateY(-1px); }
.google-g { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #3567c9; font-family: Arial, sans-serif; font-size: 16px; font-weight: 800; }
.secondary-button { margin-top: 10px; border: 1px solid var(--lb-border); color: #344054; background: #fff; cursor: pointer; }
.secondary-button:hover { background: #f8fafc; }

.security-note,
.identity-card,
.info-box,
.student-note { border-radius: 12px; }
.security-note { display: flex; gap: 11px; margin-top: 20px; padding: 15px; background: #f8fafc; border: 1px solid var(--lb-border); }
.security-icon { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--lb-success); background: #eaf8f2; font-weight: 800; }
.security-note strong, .student-note strong, .info-box strong { display: block; font-size: 13px; line-height: 1.4; }
.security-note div span, .student-note span, .info-box span { display: block; margin-top: 4px; color: var(--lb-muted); font-size: 12px; line-height: 1.6; }
.student-note { margin-top: 28px; padding: 16px 17px; border-left: 3px solid #8fa9e8; background: #f7f9fd; }
.text-link { display: inline-flex; margin-top: 22px; color: var(--lb-muted); font-size: 12.5px; }
.text-link:hover { color: var(--lb-primary); }

.identity-card { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding: 15px; border: 1px solid var(--lb-border); background: #fbfcfe; }
.identity-avatar { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--lb-primary-soft); color: var(--lb-primary); font-size: 17px; font-weight: 800; }
.identity-card strong { display: block; font-size: 13.5px; }
.identity-card span { display: block; margin-top: 2px; color: var(--lb-muted); font-size: 12px; word-break: break-all; }
.info-box { margin: 14px 0; padding: 15px 16px; background: #fff9eb; border: 1px solid #f5dfaa; }

.auth-footer { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; padding: 20px 32px; border-top: 1px solid #edf0f4; color: #98a2b3; font-size: 11px; }
.auth-footer span:first-child { color: #475467; font-weight: 700; }

@media (max-width: 900px) {
    .auth-shell { padding: 20px; }
    .auth-card { grid-template-columns: 1fr; }
    .auth-brand-panel { min-height: 450px; padding: 34px 30px; }
    .hero-copy { max-width: 680px; padding: 38px 0; }
    .hero-copy h1 { max-width: 650px; font-size: clamp(31px, 6vw, 40px); }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-item div span { font-size: 12px; }
    .auth-action-panel { min-height: 430px; }
}

@media (max-width: 560px) {
    .auth-shell { padding: 0; display: block; background: #fff; }
    .auth-card { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
    .auth-brand-panel { min-height: 390px; padding: 28px 22px; }
    .brand-name { font-size: 23px; }
    .brand-tagline { font-size: 11.5px; }
    .organization-lockup { margin-top: 16px; }
    .hero-copy { padding: 36px 0 24px; }
    .eyebrow { margin-bottom: 13px; font-size: 10.5px; }
    .hero-copy h1 { font-size: 30px; line-height: 1.3; }
    .hero-copy p { margin-top: 16px; font-size: 14px; line-height: 1.7; }
    .feature-grid { display: none; }
    .action-inner { padding: 42px 24px 30px; }
    .action-inner h2 { font-size: 27px; }
    .auth-footer { padding: 18px 24px; }
}
