/* PR8Y public auth pages — aligned with marketing site */
.auth-page {
    min-height: 100vh;
    background: #f8fafc;
    font-family: 'Inter', system-ui, sans-serif;
    color: #1e293b;
}

.auth-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: auth-float 20s ease-in-out infinite;
}

.auth-orb--blue {
    width: 420px;
    height: 420px;
    background: rgba(96, 165, 250, 0.35);
    top: -120px;
    left: -80px;
}

.auth-orb--gold {
    width: 320px;
    height: 320px;
    background: rgba(251, 191, 36, 0.28);
    bottom: -60px;
    right: -60px;
    animation-delay: -6s;
}

@keyframes auth-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-16px, 16px) scale(1.04); }
}

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.auth-main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 1rem 1rem 2.5rem;
}

.auth-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px -24px rgba(96, 165, 250, 0.35);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #60A5FA, #fbbf24);
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background: #f1f5f9;
    border-radius: 0.875rem;
    margin-bottom: 1.75rem;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 0.625rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-tab:hover {
    color: #3b82f6;
}

.auth-tab--active {
    background: white;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.auth-field {
    position: relative;
}

.auth-field-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #94a3b8;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 0.9375rem;
    color: #0f172a;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
    outline: none;
    border-color: #60A5FA;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-input--toggle {
    padding-right: 2.75rem;
}

.auth-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.auth-toggle-btn:hover {
    color: #3b82f6;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    border: none;
    border-radius: 0.875rem;
    cursor: pointer;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 24px -8px rgba(245, 158, 11, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -8px rgba(245, 158, 11, 0.65);
}

.auth-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.auth-link {
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
}

.auth-link:hover {
    color: #2563eb;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.auth-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.auth-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.auth-divider {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.auth-hint {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.35rem;
}

.strength-track {
    margin-top: 0.5rem;
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 0.3s ease, background-color 0.3s ease;
}
