/* ============================================================
   UniVibes — Auth CSS
   ============================================================ */

.auth-body {
    background: linear-gradient(135deg, #0C447C 0%, #185FA5 50%, #1D9E75 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.auth-wrapper {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    animation: authFadeIn 0.4s ease;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 2.5rem 2rem;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo a {
    text-decoration: none;
}

.auth-logo .logo-text {
    font-size: 2rem;
}

.auth-title {
    font-size: 1.375rem;
    text-align: center;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.auth-form {
    margin-top: 1.5rem;
}

.auth-form .btn-block {
    margin-top: 0.5rem;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
}

.auth-links a {
    color: var(--blue);
    font-weight: 500;
}

.auth-links a:hover {
    color: var(--navy);
}

/* Auth message pages (register-success, verify-email, etc.) */
.auth-message {
    text-align: center;
    padding: 1rem 0;
}

.auth-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.auth-icon-success {
    background: var(--success-bg);
    color: #155724;
}

.auth-icon-error {
    background: var(--danger-bg);
    color: #721c24;
}

.auth-icon-pending {
    background: var(--warning-bg);
    color: #856404;
}

.auth-text {
    color: var(--text);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.auth-text-muted {
    color: var(--gray);
    font-size: 0.8125rem;
    margin-bottom: 1.5rem;
}

/* Password Strength Indicator */
.password-strength-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

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

.password-strength-fill.weak {
    width: 33%;
    background-color: var(--danger);
}

.password-strength-fill.medium {
    width: 66%;
    background-color: var(--warning);
}

.password-strength-fill.strong {
    width: 100%;
    background-color: var(--green);
}

.password-strength-text {
    font-size: 0.75rem;
    color: var(--gray);
}

.password-strength-text.weak   { color: var(--danger); }
.password-strength-text.medium { color: var(--warning); }
.password-strength-text.strong { color: var(--green); }

/* Auth divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--gray);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    padding: 0 0.75rem;
}

/* Auth options row */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.auth-options label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    color: var(--text);
}

.auth-options label input {
    accent-color: var(--blue);
}

/* Error code pages in auth layout */
.auth-message .error-code {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

/* Profile Type Selector cards */
.profile-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.profile-type-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--white);
}

.profile-type-card:hover {
    border-color: var(--blue);
    background: var(--blue-light);
}

.profile-type-card.selected {
    border-color: var(--blue);
    background: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.15);
}

.profile-type-card .type-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.profile-type-card .type-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    display: block;
    margin-bottom: 0.15rem;
}

.profile-type-card .type-desc {
    font-size: 0.75rem;
    color: var(--gray);
    display: block;
}

.profile-type-card input[type="radio"] {
    display: none;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.25rem;
        border-radius: 8px;
    }

    .auth-body {
        align-items: flex-start;
        padding-top: 2rem;
    }

    .auth-links {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .profile-type-selector {
        grid-template-columns: 1fr;
    }
}
