:root {
    --navy: #102b3b;
    --teal: #123b4a;
    --accent: #168575;
    --muted: #64748b;
    --border: #dce5e9;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 18px;
    font-family: -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;
    color: var(--navy);
    background:
        radial-gradient(
            ellipse at 15% 10%,
            rgba(22,133,117,.12),
            transparent 45%
        ),
        radial-gradient(
            ellipse at 90% 90%,
            rgba(18,59,74,.13),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #edf3f5,
            #f9fbfc 55%,
            #e5eef0
        );
}

.auth-shell {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 24px 65px rgba(16,43,59,.14),
        0 4px 12px rgba(16,43,59,.05);
}

.auth-brand {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 32px 24px 29px;
    background:
        radial-gradient(
            circle at 85% 0%,
            rgba(45,212,191,.19),
            transparent 48%
        ),
        linear-gradient(
            120deg,
            #102b3b,
            #123b4a 65%,
            #16535a
        );
    color: #fff;
}

.auth-brand::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    right: -120px;
    bottom: -150px;
    pointer-events: none;
}

.logo-panel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 20px;
}

.logo-panel img {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
}

.auth-brand h1 {
    margin: 0 0 8px;
    font-size: 25px;
    font-weight: 650;
    letter-spacing: -.65px;
}

.auth-brand p {
    margin: 0;
    color: #c7dfe3;
    font-size: 12px;
    line-height: 1.6;
}

.auth-accent {
    height: 4px;
    background: linear-gradient(
        90deg,
        #168575,
        #5eead4,
        #168575
    );
}

.auth-content {
    padding: 34px 32px 28px;
    text-align: center;
}

.auth-description {
    margin: 0 0 25px;
    font-size: 14px;
    line-height: 1.7;
    color: #526574;
}

.google-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    width: 100%;
    min-height: 52px;
    padding: 13px 18px;
    border: 1px solid #c7d3da;
    border-radius: 9px;
    background: #fff;
    color: #243746;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition:
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.google-button:hover {
    background: #f5faf9;
    border-color: #168575;
    box-shadow: 0 4px 15px rgba(22,133,117,.10);
}

.google-button:focus-visible {
    outline: 3px solid #168575;
    outline-offset: 4px;
}

.google-button svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 23px;
    color: #147d70;
    font-size: 11px;
    font-weight: 600;
}

.security-note svg {
    width: 15px;
    height: 15px;
}

.auth-footer {
    margin: 0 32px;
    padding: 20px 0 24px;
    border-top: 1px solid #e5ecef;
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.success-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e5f5ef;
    color: #168575;
}

.success-icon svg {
    width: 34px;
    height: 34px;
}

.logout-title {
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -.4px;
    margin: 0 0 12px;
}

.logout-note {
    font-size: 11px;
    line-height: 1.7;
    color: var(--muted);
    margin: 20px 0 0;
}

.auth-error {
    padding: 14px;
    margin-bottom: 20px;
    background: #fff4f2;
    border: 1px solid #efc9c3;
    border-radius: 8px;
    color: #9f3026;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 480px) {
    body {
        padding: 18px 14px;
    }

    .auth-brand {
        padding: 26px 18px;
    }

    .auth-brand h1 {
        font-size: 23px;
    }

    .auth-content {
        padding: 28px 22px;
    }

    .auth-footer {
        margin: 0 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
