*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --dark-teal: #003340;
    --teal: #007280;
    --amber: #FFB800;
    --green: #10B981;
    --bg-light: #F4F7F6;
    --text-dark: #1a2e35;
    --text-muted: #3a5a64;
    --white: #ffffff;
}

html, body { height: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ── Left Brand Panel ── */
.brand-panel {
    background: var(--dark-teal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3.5rem;
    padding-top: 6rem;
}

.brand-panel::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 114, 128, 0.35) 0%, transparent 70%);
    animation: drift 18s ease-in-out infinite;
}

.brand-panel::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    animation: drift 22s ease-in-out infinite reverse;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 15px) scale(0.97); }
}

.brand-circle-1 {
    position: absolute;
    top: 15%;
    right: 12%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--amber);
    opacity: 0.7;
    animation: pulse-soft 4s ease-in-out infinite;
}

.brand-circle-2 {
    position: absolute;
    bottom: 25%;
    right: 20%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    opacity: 0.5;
    animation: pulse-soft 5s ease-in-out infinite 1s;
}

.brand-circle-3 {
    position: absolute;
    top: 40%;
    left: 8%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: drift 25s ease-in-out infinite;
}

@keyframes pulse-soft {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.2); }
}

.brand-content {
    position: relative;
    z-index: 1;
}

.brand-logo {
    height: 36px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.brand-title {
    font-family: 'Satoshi', 'Inter', sans-serif;
    font-size: 2.75rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.brand-title span {
    color: var(--amber);
}

.brand-description {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    max-width: 380px;
    margin-top: 1.5rem;
}

.brand-divider {
    width: 48px;
    height: 2px;
    background: var(--teal);
    margin-top: 2.5rem;
    border-radius: 1px;
}

/* ── Right Form Panel ── */
.form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    background: var(--bg-light);
    position: relative;
}

.form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(0, 114, 128, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(16, 185, 129, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.form-wrapper {
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 1;
}

.mobile-brand {
    display: none;
}

.mobile-brand-logo {
    height: 28px;
}

.form-heading {
    font-family: 'Satoshi', 'Inter', sans-serif;
    font-size: 1.85rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-subheading {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

/* Google Sign-In Button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: var(--white);
    border: 1.5px solid #d1dbe0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 51, 64, 0.06);
}

.google-btn:hover {
    border-color: var(--teal);
    box-shadow: 0 2px 8px rgba(0, 114, 128, 0.12);
    transform: translateY(-1px);
}

.google-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 51, 64, 0.08);
}

.google-btn svg {
    flex-shrink: 0;
}

.form-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 51, 64, 0.08);
    text-align: center;
}

.form-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.form-footer a {
    color: var(--teal);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.form-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 1.5rem;
    padding: 12px 14px;
    background: rgba(0, 114, 128, 0.04);
    border-radius: 8px;
    border-left: 2px solid var(--teal);
}

.form-note svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.form-note p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        display: none;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 2.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(0, 51, 64, 0.08);
    }

    .mobile-brand-icon {
        width: 36px;
        height: 36px;
        background: var(--dark-teal);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-brand-text {
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--dark-teal);
    }

    .form-panel {
        min-height: 100vh;
        padding: 2rem 1.5rem;
    }
}

/* ── Page load animation ── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.brand-content > * {
    animation: fade-up 0.6s ease-out both;
}
.brand-logo { animation-delay: 0.1s; }
.brand-title { animation-delay: 0.2s; }
.brand-description { animation-delay: 0.35s; }
.brand-divider { animation-delay: 0.45s; }

.form-wrapper > * {
    animation: fade-up 0.5s ease-out both;
}
.mobile-brand { animation-delay: 0.05s; }
.form-heading { animation-delay: 0.15s; }
.form-subheading { animation-delay: 0.25s; }
.google-btn { animation-delay: 0.35s; }
.form-note { animation-delay: 0.45s; }
.form-footer { animation-delay: 0.5s; }
