/* ==========================================================================
   Login Page — Sync by Arobit  (v2 — viewport-fit, navy, responsive)
   File: public/css/login-page.css
   Brand color: #162d42 (Arobit navy)
   ========================================================================== */

/* ── Reset for this page ── */
html, body {
    height: 100%;
    overflow: hidden;
}

/* ── Page Shell: fills exactly one viewport, no scroll ── */
.sd-auth-page {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ════════════════════════════════════════════════
   LEFT — Brand & Collaboration Panel
   ════════════════════════════════════════════════ */
.sd-auth-brand-panel {
    flex: 0 0 50%;
    background: linear-gradient(150deg, #040d17 0%, #0c1f31 35%, #162d42 70%, #1a3558 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 48px 36px;
    position: relative;
    overflow: hidden;
}

/* subtle dot-grid overlay */
.sd-auth-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.055) 1px, transparent 0);
    background-size: 26px 26px;
    pointer-events: none;
}

/* faint glow bottom-right */
.sd-auth-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(26,94,168,0.30) 0%, transparent 65%);
    pointer-events: none;
}

/* Top-right decorative orb */
.sd-auth-brand-content::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(99,148,210,0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Feature icon accent line */
.sd-auth-feature + .sd-auth-feature {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

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

/* Logo */
.sd-auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.sd-auth-logo-mark {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.10);
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.sd-auth-logo-name {
    display: block;
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.sd-auth-logo-by {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.42);
    letter-spacing: 0.04em;
    font-weight: 500;
    margin-top: 1px;
}

/* Headline */
.sd-auth-headline {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.22;
    margin: 0 0 12px;
}

.sd-auth-tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.52);
    line-height: 1.6;
    margin: 0 0 40px;
}

/* Features */
.sd-auth-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sd-auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.sd-auth-feature-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.09);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
}

.sd-auth-feature-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.sd-auth-feature-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.42);
    line-height: 1.5;
}

.sd-auth-brand-footer {
    position: relative;
    z-index: 1;
    font-size: 11.5px;
    color: rgba(255,255,255,0.25);
}

/* ════════════════════════════════════════════════
   RIGHT — Auth Form Panel
   ════════════════════════════════════════════════ */
.sd-auth-form-panel {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 36px;
    overflow: hidden;
}

.sd-auth-form-inner {
    width: 100%;
    max-width: 380px;
}

/* ── Auth Sections ── */
.sd-auth-section {
    margin-bottom: 0;
}

.sd-auth-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.sd-auth-section-badge--client {
    background: #F1F5F9;
    color: #475569;
}

.sd-auth-section-badge--team {
    background: #EBF2FA;
    color: #1a3558;
}

.sd-auth-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 2px;
    letter-spacing: -0.02em;
}

.sd-auth-section-sub {
    font-size: 12.5px;
    color: #94A3B8;
    margin: 0 0 14px;
    line-height: 1.45;
}

.sd-auth-section-sub strong {
    color: #162d42;
    font-weight: 600;
}

/* Override sd-form-group spacing for this page */
.sd-auth-form-inner .sd-form-group {
    margin-bottom: 12px;
}

.sd-auth-form-inner .sd-label {
    margin-bottom: 4px;
    font-size: 12.5px;
}

.sd-auth-form-inner .sd-input {
    padding: 8px 12px;
    font-size: 13.5px;
    height: auto;
}

.sd-alert--spaced {
    margin-bottom: 12px;
}

/* Input wrap for password */
.sd-input-wrap {
    position: relative;
}

.sd-input--pw {
    padding-right: 40px;
}

.sd-pw-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
}

/* Remember / forgot row */
.sd-auth-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.sd-auth-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: #64748B;
    cursor: pointer;
}

.sd-auth-remember input[type="checkbox"] {
    accent-color: #162d42;
}

.sd-auth-forgot {
    font-size: 12.5px;
    color: #162d42;
    text-decoration: none;
}

.sd-auth-forgot:hover {
    text-decoration: underline;
}

/* Full-width button */
.sd-btn--full {
    width: 100%;
    justify-content: center;
}

/* Sign In button — override to Arobit navy */
.sd-auth-form-inner #submitBtn {
    background: #162d42;
    border-color: #162d42;
    padding: 9px 16px;
    font-size: 13.5px;
}

.sd-auth-form-inner #submitBtn:hover {
    background: #1a3558;
    border-color: #1a3558;
}

/* ── OR divider ── */
.sd-auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
}

.sd-auth-divider::before,
.sd-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}

.sd-auth-divider span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #CBD5E1;
}

/* ── Google button in team section ── */
.sd-auth-section .sd-oauth-btn {
    padding: 10px 16px;
    font-size: 13.5px;
    border-radius: 8px;
    border-color: #E2E8F0;
    font-weight: 600;
}

.sd-auth-section .sd-oauth-btn:hover {
    border-color: #162d42;
    box-shadow: 0 0 0 3px rgba(22, 45, 66, 0.08);
    background: #F8FAFC;
}

/* Spinner */
.sd-spinner--sm {
    width: 15px;
    height: 15px;
    border-width: 2px;
    border-top-color: #fff;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

/* ════════════════════════════════════════════════
   MOBILE — Stack vertically, no horizontal split
   ════════════════════════════════════════════════ */
@media (max-width: 768px) {
    html, body {
        overflow: auto;
    }

    .sd-auth-page {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    .sd-auth-brand-panel {
        flex: none;
        padding: 24px 20px 20px;
        justify-content: flex-start;
        gap: 0;
    }

    .sd-auth-logo {
        margin-bottom: 16px;
    }

    .sd-auth-headline {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }

    .sd-auth-tagline {
        font-size: 13px;
        margin-bottom: 0;
    }

    .sd-auth-features,
    .sd-auth-brand-footer {
        display: none;
    }

    .sd-auth-form-panel {
        flex: 1;
        padding: 24px 20px 32px;
        align-items: flex-start;
        overflow: visible;
    }

    .sd-auth-form-inner {
        max-width: 100%;
    }
}

/* ── Tablet tweaks ── */
@media (min-width: 769px) and (max-width: 1024px) {
    .sd-auth-brand-panel {
        flex: 0 0 44%;
        padding: 36px 36px 28px;
    }

    .sd-auth-headline {
        font-size: 1.5rem;
    }

    .sd-auth-tagline {
        margin-bottom: 28px;
    }

    .sd-auth-features {
        gap: 16px;
    }

    .sd-auth-form-panel {
        padding: 24px 28px;
    }
}

/* == Team Member Section — warm orange tint == */
.sd-auth-section--team {
    background: linear-gradient(135deg, #FFF8F0 0%, #FEF0DA 100%);
    border: 1px solid #F9D4A0;
    border-radius: 12px;
    padding: 20px 20px 18px;
    text-align: center;
}

.sd-auth-section--team .sd-auth-section-badge {
    display: inline-flex;
    margin: 0 auto 8px;
    background: rgba(232,106,16,0.12);
    color: #92400E;
}

.sd-auth-section--team .sd-auth-section-title {
    color: #7C3500;
}

.sd-auth-section--team .sd-auth-section-sub {
    margin-bottom: 14px;
    color: #9A6228;
}

.sd-auth-section--team .sd-auth-section-sub strong {
    color: #7C3500;
    font-weight: 600;
}

.sd-auth-section--team .sd-oauth-btn {
    background: #fff;
    border-color: #F9D4A0;
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 16px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    width: 100%;
    color: #374151;
}

.sd-auth-section--team .sd-oauth-btn:hover {
    border-color: #E86A10;
    box-shadow: 0 0 0 3px rgba(232,106,16,0.10);
    background: #FFFBF5;
    color: #7C3500;
}
