/* ── Auth page (RunPod-inspired: form left, hero right) ── */

.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--mkt-dark, #06080f);
}

.auth-page {
    display: grid;
    grid-template-columns: minmax(420px, 480px) minmax(0, 1fr);
    min-height: 100vh;
}

/* ── Left form panel ── */

.auth-panel {
    background: var(--mkt-dark, #06080f);
    color: var(--mkt-text-on-dark, #f8fafc);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2.25rem;
    z-index: 2;
}

.auth-panel-inner {
    width: 100%;
    max-width: 400px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    text-decoration: none;
}

.auth-brand .brand-bolt {
    width: 0.85em;
    height: 0.85em;
    color: var(--accent, #f55036);
}

.auth-brand:hover {
    color: #fff;
}

.auth-brand--panel {
    margin-bottom: 2rem;
}

.auth-landing {
    display: block;
}

.auth-panel-header {
    margin-bottom: 0.25rem;
}

.auth-panel-title {
    font-size: clamp(1.65rem, 3.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 0.75rem;
    color: #fff;
}

.auth-panel-subtitle {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgba(248, 250, 252, 0.58);
    margin-bottom: 0;
}

.auth-steps {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-steps li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.9375rem;
    color: rgba(248, 250, 252, 0.78);
    line-height: 1.4;
}

.auth-step-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: rgba(248, 250, 252, 0.5);
}

.auth-panel-footer {
    margin-top: 2rem;
    padding-top: 0;
}

.auth-legal {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(248, 250, 252, 0.42);
    margin: 0 0 1.25rem;
}

.auth-legal--form {
    margin-top: 1.25rem;
    margin-bottom: 0;
    text-align: center;
}

.auth-legal a {
    color: rgba(248, 250, 252, 0.62);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-legal a:hover {
    color: #fff;
}

.auth-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.auth-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.95rem 1rem;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--mkt-dark, #06080f);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

.auth-action-btn:hover {
    transform: translateY(-1px);
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.auth-action-btn i {
    font-size: 1rem;
    opacity: 0.75;
}

.auth-form-panel {
    animation: auth-fade-in 0.2s ease;
}

.auth-toggle-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    margin: 1.75rem 0 1.5rem;
}

.auth-toggle-tab {
    position: relative;
    padding: 0.75rem 0.5rem 1rem;
    border: none;
    background: none;
    color: rgba(248, 250, 252, 0.45);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: color 0.15s ease;
}

.auth-toggle-tab:hover {
    color: rgba(248, 250, 252, 0.75);
}

.auth-toggle-tab.active {
    color: #fff;
}

.auth-toggle-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #fff;
    border-radius: 2px 2px 0 0;
}

.auth-tab-panels {
    min-height: 0;
}

.auth-tab-pane {
    animation: auth-fade-in 0.15s ease;
}

.auth-form-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    padding: 0;
    margin-bottom: 1.5rem;
    border: none;
    background: none;
    color: rgba(248, 250, 252, 0.5);
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.15s ease;
}

.auth-form-back:hover {
    color: rgba(248, 250, 252, 0.9);
}

.auth-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(248, 250, 252, 0.72);
    margin-bottom: 0.35rem;
}

.auth-input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: #fff;
    padding: 0.7rem 0.9rem;
    font-size: 0.9375rem;
}

.auth-input::placeholder {
    color: rgba(248, 250, 252, 0.35);
}

.auth-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 80, 54, 0.55);
    box-shadow: 0 0 0 3px rgba(245, 80, 54, 0.15);
    color: #fff;
}

.auth-credit-banner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: rgba(245, 80, 54, 0.12);
    border: 1px solid rgba(245, 80, 54, 0.3);
    font-size: 0.875rem;
    color: rgba(248, 250, 252, 0.85);
}

.auth-credit-banner i {
    font-size: 1.1rem;
    color: var(--accent, #f55036);
}

.auth-credit-banner strong {
    color: #fff;
}

.auth-alert {
    font-size: 0.875rem;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1rem;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--mkt-dark, #06080f);
    border: none;
    border-radius: 14px;
    padding: 0.9rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

.auth-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #fff;
    color: var(--mkt-dark, #06080f);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.auth-submit:disabled {
    opacity: 0.7;
}

.auth-forgot-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: -0.35rem;
    margin-bottom: 1rem;
}

.auth-forgot-link {
    font-size: 0.8125rem;
    color: rgba(248, 250, 252, 0.55);
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-forgot-link:hover {
    color: rgba(248, 250, 252, 0.9);
}

@keyframes auth-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Right hero panel (RunPod-style testimonial + portrait) ── */

.auth-hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background: #0a0e16;
}

.auth-hero-media {
    position: absolute;
    inset: 0;
}

.auth-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: opacity 0.6s ease;
}

.auth-hero-img.is-fading {
    opacity: 0;
}

.auth-hero-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a2030 0%, #121820 35%, #0d1118 70%, #06080f 100%);
}

.auth-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(6, 8, 15, 0.92) 0%,
        rgba(6, 8, 15, 0.45) 45%,
        rgba(6, 8, 15, 0.25) 100%
    );
    pointer-events: none;
}

.auth-hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 3rem 3.5rem 5.5rem;
    max-width: 640px;
    color: #fff;
}

.auth-hero-company {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 1.25rem;
}

.auth-hero-quote {
    margin: 0 0 1.75rem;
    padding: 0;
    border: none;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: #fff;
}

.auth-hero-attribution {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.auth-hero-author {
    font-style: normal;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.auth-hero-role {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
}

.auth-hero-photo-credit {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 3;
    margin: 0;
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.45);
}

.auth-hero-photo-credit a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-hero-dots {
    position: absolute;
    left: 3.5rem;
    bottom: 2.25rem;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.auth-hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.auth-hero-dot:hover {
    background: rgba(255, 255, 255, 0.65);
}

.auth-hero-dot.active {
    background: #fff;
    transform: scale(1.15);
}

/* ── Responsive ── */

@media (max-width: 991px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        padding: 2rem 1.5rem 2.5rem;
        order: 1;
    }

    .auth-hero {
        order: 2;
        min-height: 320px;
        max-height: 42vh;
    }

    .auth-hero-content {
        padding: 1.75rem 1.5rem 4rem;
    }

    .auth-hero-quote {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .auth-hero-dots {
        left: 1.5rem;
        bottom: 1.25rem;
    }

    .auth-panel-inner {
        max-width: none;
    }

    .auth-steps {
        margin-bottom: 0;
    }

    .auth-panel-footer {
        margin-top: 1.75rem;
    }
}

@media (max-width: 575px) {
    .auth-panel-title {
        font-size: 1.5rem;
    }

    .auth-action-buttons {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        min-height: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-hero-img {
        transition: none;
    }

    .auth-form-panel,
    .auth-tab-pane {
        animation: none;
    }
}
