:root {
    --purple-900: #241751;
    --purple-800: #301E6E;
    --purple-600: #5B3DF0;
    --purple-400: #8E7CF9;
    --purple-100: #EDEAFD;
    --bg: #F6F5FC;
    --card: #FFFFFF;
    --text-dark: #181430;
    --text-light: #6C6787;
    --border: #E4E1F5;
    --radius: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    display: flex;
    min-height: 100vh;
}

a {
    color: inherit;
}

/* ---------- Left brand panel ---------- */
.panel {
    position: relative;
    flex: 1 1 46%;
    background:
        radial-gradient(circle at 15% 20%, rgba(142, 124, 249, 0.35), transparent 45%),
        linear-gradient(160deg, var(--purple-900) 0%, var(--purple-800) 55%, #1B1140 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 56px 48px;
    overflow: hidden;
    min-height: 100vh;
}

.panel svg.nodes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.55;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 2;
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--purple-400), #C6BBFF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    color: var(--purple-900);
    font-size: 15px;
}

.panel-copy {
    position: relative;
    z-index: 2;
    max-width: 420px;
}

.panel-copy h1 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 3.2vw, 38px);
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.panel-copy p {
    color: #C9C3EE;
    font-size: 15px;
    line-height: 1.6;
}

.panel-foot {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 28px;
    font-size: 13px;
    color: #9E96D6;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5EE6A0;
    margin-right: 7px;
    box-shadow: 0 0 0 4px rgba(94, 230, 160, 0.18);
}

/* ---------- Right form panel ---------- */
.stage {
    flex: 1 1 54%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.card {
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.card-logo {
    display: block;
    height: 70px;
    width: auto;
    margin: 0 auto 24px;
    object-fit: contain;
}

.card-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--purple-600);
    margin-bottom: 14px;
}

.card h2 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.card p.sub {
    color: var(--text-light);
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 36px;
}

.google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

.google-btn:hover {
    box-shadow: 0 6px 18px rgba(91, 61, 240, 0.14);
    border-color: var(--purple-400);
    transform: translateY(-1px);
}

.google-btn:active {
    transform: translateY(0);
}

.google-btn:focus-visible {
    outline: 2px solid var(--purple-600);
    outline-offset: 2px;
}

.google-btn svg {
    flex-shrink: 0;
}

.divider-note {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    margin: 28px 0;
    color: var(--text-light);
    font-size: 12.5px;
}

.divider-note::before,
.divider-note::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.helper {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    text-align: center;
}

.helper a {
    color: var(--purple-600);
    font-weight: 600;
    text-decoration: none;
}

.helper a:hover {
    text-decoration: underline;
}

#error-banner {
    display: none;
    background: #FDEDEE;
    border: 1px solid #F6C6CA;
    color: #9B2C33;
    font-size: 13px;
    padding: 11px 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

@media (max-width: 860px) {
    @media (max-width: 860px) {
        body {
            flex-direction: column;
        }

        .panel {
            display: none;
        }

        .stage {
            padding: 32px 24px 56px;
        }
    }
}