/* ============================================
   MAILCRAFT — AUTH PAGE STYLES (auth.css)
   Extends: style.css
   Layout: Full-height split-panel
   ============================================ */

/* ===== BODY OVERRIDE ===== */
.auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== AUTH LAYOUT — 50/50 SPLIT ===== */
.auth-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 100vh;
}

/* ============================================
   LEFT PANEL
   ============================================ */
.auth-panel-left {
    position: relative;
    background: linear-gradient(160deg, var(--bg-surface) 0%, var(--bg-base) 100%);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    padding: 2.5rem 3rem 2rem;
    overflow: hidden;
    gap: 0;
}

/* Decorative inner glow */
.auth-panel-left::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(130, 130, 190, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

/* Logo */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
}

/* Panel content */
.auth-panel-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.auth-panel-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.auth-panel-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.auth-panel-sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 360px;
    margin-bottom: 2rem;
}

/* Feature list */
.auth-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-feature-item strong {
    color: var(--text-primary);
}

.afl-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.afl-green {
    background: rgba(78, 203, 141, 0.12);
    color: var(--clr-green);
}

.afl-blue {
    background: rgba(91, 141, 238, 0.12);
    color: var(--clr-blue);
}

.afl-purple {
    background: rgba(155, 114, 239, 0.12);
    color: var(--clr-purple);
}

.afl-orange {
    background: rgba(232, 142, 78, 0.12);
    color: var(--clr-orange);
}

/* Social proof */
.auth-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

/* ===== MINI DASHBOARD PREVIEW CARD ===== */
.auth-preview-card {
    position: relative;
    z-index: 1;
    padding: 1.1rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    animation: floatCard 6s ease-in-out infinite;
}

.preview-top-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.preview-url {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: auto;
}

.preview-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.preview-stat {
    flex: 1;
}

.ps-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.ps-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.preview-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 42px;
    margin-bottom: 0.85rem;
}

.pb {
    flex: 1;
    height: var(--h);
    background: rgba(255, 255, 255, 0.07);
    border-radius: 3px 3px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pb.active {
    background: rgba(160, 160, 210, 0.28);
    border-color: rgba(160, 160, 210, 0.35);
}

.preview-campaign-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.preview-camp-name {
    flex: 1;
    color: var(--text-secondary);
    font-weight: 500;
}

.preview-camp-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.18rem 0.5rem;
    border-radius: 6px;
}

/* Panel footer */
.auth-panel-footer {
    font-size: 0.78rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.auth-panel-footer a {
    color: var(--accent-1);
    text-decoration: none;
    transition: opacity 0.2s;
}

.auth-panel-footer a:hover {
    opacity: 0.75;
}

/* ============================================
   RIGHT PANEL
   ============================================ */
.auth-panel-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 3rem;
    position: relative;
    background: var(--bg-base);
}

/* Topbar */
.auth-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 3rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.82rem;
}

.auth-back-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-back-link:hover {
    color: var(--text-primary);
}

.auth-topbar-right {
    color: var(--text-muted);
}

.auth-help-link {
    color: var(--accent-1);
    text-decoration: none;
    border-bottom: 1px solid rgba(180, 180, 230, 0.3);
    transition: border-color 0.2s;
}

.auth-help-link:hover {
    border-bottom-color: var(--accent-1);
}

/* ===== AUTH CARD ===== */
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-mid);
    border-radius: 24px;
    box-shadow: var(--shadow-float);
    overflow: hidden;
    position: relative;
}

/* ===== TAB TOGGLE ===== */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
}

.auth-tab {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: color 0.25s var(--ease);
    font-family: inherit;
}

.auth-tab.active {
    color: var(--text-primary);
}

.auth-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
    transition: transform 0.3s var(--ease);
    border-radius: 2px 2px 0 0;
}

/* ===== AUTH VIEWS ===== */
.auth-view {
    padding: 2rem;
    animation: fadeInView 0.35s ease;
}

.auth-view-hidden {
    display: none;
}

@keyframes fadeInView {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Header */
.auth-card-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-1);
    margin: 0 auto 1rem;
}

.auth-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.auth-card-sub {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== GOOGLE BUTTON ===== */
.google-btn {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border-mid);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-raise),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.google-btn:active {
    transform: translateY(0);
}

.google-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.google-icon {
    flex-shrink: 0;
}

/* Shimmer shine sweep */
.google-btn-shine {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    left: -60%;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
    transform: skewX(-15deg);
    transition: left 0.55s ease;
    pointer-events: none;
}

.google-btn:hover .google-btn-shine {
    left: 120%;
}

/* ===== AUTH DIVIDER ===== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.divider-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ===== AUTH STEPS ===== */
.auth-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.auth-step:last-child {
    border-bottom: none;
}

.auth-step strong {
    color: var(--text-primary);
}

.auth-step-arrow {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.1rem 0;
    line-height: 1;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-subtle);
}

.step-num-sm {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-1);
    flex-shrink: 0;
    box-shadow: var(--shadow-raise);
}

/* ===== LEGAL NOTE ===== */
.auth-legal-note {
    font-size: 0.775rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

.auth-legal-note a {
    color: var(--accent-1);
    text-decoration: none;
    border-bottom: 1px solid rgba(160, 160, 220, 0.3);
    transition: border-color 0.2s;
}

.auth-legal-note a:hover {
    border-bottom-color: var(--accent-1);
}

/* ===== TIER COMPARE (signup tab) ===== */
.tier-compare {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.tier-col {
    flex: 1;
    padding: 1rem 1.25rem;
}

.tier-free {
    border-right: 1px solid var(--border-subtle);
}

.tier-divider-v {
    display: none;
}

.tier-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.6rem;
    letter-spacing: 0.05em;
}

.tier-badge-free {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

.tier-badge-premium {
    color: var(--accent-1);
}

.tier-price-sm {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    letter-spacing: -0.03em;
}

.tier-price-sm span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.tier-mini-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tier-mini-list li {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.tier-premium .tier-mini-list li {
    color: var(--text-secondary);
}

.tier-premium .tier-price-sm {
    color: var(--accent-1);
}

/* ===== TRUST BADGES ===== */
.auth-trust {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.75rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.trust-sep {
    color: var(--border-mid);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-panel-left {
        display: none;
    }

    .auth-panel-right {
        padding: 2rem 1.5rem;
        justify-content: flex-start;
        padding-top: 5.5rem;
        min-height: 100vh;
    }

    .auth-topbar {
        padding: 1rem 1.5rem;
    }

    .auth-card {
        max-width: 100%;
    }

    .auth-trust {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .auth-panel-right {
        padding: 1.25rem;
        padding-top: 5rem;
    }

    .auth-view {
        padding: 1.5rem 1.25rem;
    }

    .auth-trust {
        gap: 0.4rem;
    }

    .trust-sep {
        display: none;
    }

    .trust-item {
        font-size: 0.7rem;
    }
}