/* ── RESET & ROOT ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --slate-deep:   #1e2a3a;
    --slate-mid:    #2c3e55;
    --slate-soft:   #3d5269;
    --dusty:        #5A86AD;
    --dusty-light:  #7aa3c4;
    --dusty-xlight: #d6e5f0;
    --amber:        #c87941;
    --amber-light:  #d9935e;
    --white:        #ffffff;
    --cream:        #f7f5f2;
    --warm-gray:    #e8e4de;
    --gray-text:    #8a8a8a;
    --dark:         #1a1f2e;
}

body {
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Warm neutral — parchment/sand gradient, no blue */
    background: radial-gradient(ellipse at 20% 60%, #d4c9b8 0%, #bfb5a5 40%, #a89f92 100%);
    padding: 20px;
}

/* ── CARD ── */
.card {
    position: relative;
    width: 860px;
    height: 520px;
    border-radius: 28px;
    overflow: hidden;
    background: var(--slate-mid);
    box-shadow:
        0 2px 0 rgba(255,255,255,.08) inset,
        0 40px 100px rgba(0,0,0,.35),
        0 0 0 1px rgba(255,255,255,.05);
    animation: floatIn .6s cubic-bezier(.16,1,.3,1) both;
}

@keyframes floatIn {
    from { opacity: 0; transform: scale(.96) translateY(24px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── LEFT PANEL ── */
.left-panel {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(145deg, var(--slate-soft) 0%, var(--slate-deep) 100%);
}
.left-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: .4;
    pointer-events: none;
}

/* ── WHITE RIGHT PANEL ── */
.right-panel {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: var(--cream);
    clip-path: path('M 380,0 C 400,80 455,170 430,270 C 408,360 300,388 200,438 C 140,468 80,492 40,500 L 860,500 L 860,0 Z');
}

/* Corner accent */
.deco-br {
    position: absolute;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dusty), var(--slate-deep));
    bottom: -28px;
    right: -28px;
    z-index: 26;
    box-shadow: -4px -4px 20px rgba(0,0,0,.2);
}

/* ── LEFT CONTENT ── */
.left-content {
    position: absolute;
    top: 0; left: 0;
    width: 340px; height: 100%;
    display: flex; flex-direction: column; justify-content: flex-start;
    padding: 36px 40px 40px;
    z-index: 20;
    color: var(--white);
}

.left-content .org-sub {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--amber-light);
    margin-bottom: 6px;
}

.left-content h1 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.5px;
    margin-bottom: 10px;
    color: #fff;
}

.accent-line {
    width: 36px; height: 3px;
    background: linear-gradient(90deg, var(--dusty), var(--dusty-light));
    border-radius: 2px;
    margin-bottom: 14px;
}

.left-content p {
    font-size: 13px;
    line-height: 1.75;
    color: rgba(255,255,255,.85);
    font-weight: 500;
    max-width: 230px;
}

/* ── RIGHT CONTENT ── */
.right-content {
    position: absolute;
    top: 0; right: 0;
    width: 510px; height: 100%;
    display: flex; flex-direction: column; justify-content: flex-start;
    padding: 28px 52px 28px 90px;
    z-index: 30;
}

.right-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -.4px;
    margin-bottom: 3px;
    text-align: center;
}

.right-content .sub-text {
    font-size: 12px;
    color: var(--gray-text);
    margin-bottom: 16px;
    font-weight: 400;
    text-align: center;
}

/* ── ALERT MESSAGES ── */
.alert {
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 500;
    margin-bottom: 12px;
}
.alert-danger  { background: #fff0f0; color: #c0392b; border-left: 3px solid #c0392b; }
.alert-success { background: #f0f7ff; color: #1d4ed8; border-left: 3px solid var(--dusty); }

/* ── GOOGLE BUTTON ── */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 12px;
    background: var(--white);
    border: 1.5px solid var(--warm-gray);
    color: var(--dark);
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    text-decoration: none;
    margin-top: 8px;
}
.btn-google:hover {
    background: #fafafa;
    border-color: var(--dusty-xlight);
    box-shadow: 0 4px 18px rgba(90,134,173,.18);
    transform: translateY(-1px);
    color: var(--dark);
}
.btn-google:active { transform: translateY(0); }

/* ── DIVIDER ── */
.divider {
    display: flex; align-items: center; gap: 10px;
    margin: 16px 0;
    font-size: 11px; color: var(--gray-text);
}
.divider::before, .divider::after {
    content: ''; flex: 1;
    height: 1px; background: var(--warm-gray);
}

/* ── FOOTER TEXT ── */
.footer-row {
    text-align: center;
    margin-top: 14px;
    font-size: 11px;
    color: var(--gray-text);
}
.footer-row a {
    color: var(--dusty);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}
.footer-row a:hover { color: var(--slate-deep); }

/* ── MOBILE BRAND ── */
.mobile-brand { display: none; }

@media (max-width: 880px) {
    .card {
        width: 100%;
        max-width: 480px;
        height: auto;
        border-radius: 24px;
    }
    .left-panel, .left-content, .deco-br { display: none; }
    .right-panel {
        clip-path: none;
        position: relative;
        border-radius: 24px;
        background: var(--cream);
    }
    .right-content {
        position: relative;
        width: 100%;
        padding: 44px 36px 40px;
    }
    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 24px;
    }
    .mobile-brand .logo-wrap {
        width: 46px; height: 46px;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--dusty), var(--slate-deep));
        display: flex; align-items: center; justify-content: center;
        flex-shrink: 0;
    }
    .mobile-brand .logo-initials {
        font-size: 10px; font-weight: 800; color: #fff;
        letter-spacing: .05em; text-align: center;
        line-height: 1.2; font-family: 'Outfit', sans-serif;
    }
    .mobile-brand .brand-name {
        font-size: 12px; font-weight: 800;
        color: var(--slate-deep);
        letter-spacing: .03em; text-transform: uppercase; line-height: 1.2;
    }
    .mobile-brand .brand-sub {
        font-size: 10px; font-weight: 600; color: var(--amber);
        letter-spacing: .04em; text-transform: uppercase; margin-top: 3px;
    }
}

@media (max-width: 520px) {
    body { padding: 12px; }
    .right-content { padding: 38px 22px 34px; }
    .right-content h2 { font-size: 24px; }
}