/* ===== AUTH PAGE STYLES ===== */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.05), transparent 50%);
    pointer-events: none;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.4s ease-out;
}

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

.auth-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* ===== FORM STYLES ===== */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-blue);
}

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

.form-link {
    font-size: 0.875rem;
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.form-link:hover {
    color: var(--accent-blue-hover);
}

.form-link-inline {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.form-link-inline:hover {
    color: var(--accent-blue-hover);
    text-decoration: underline;
}

/* ===== BUTTON STYLES ===== */

.btn-auth {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-hover));
    color: white;
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-auth:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.btn-auth:active:not(:disabled) {
    transform: translateY(0);
}

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

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== SPINNER ===== */

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.spinner.large {
    width: 48px;
    height: 48px;
    border-width: 4px;
    border-color: rgba(59, 130, 246, 0.2);
    border-top-color: var(--accent-blue);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== MESSAGE STYLES ===== */

.error-message,
.success-message {
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.success-message strong {
    color: var(--success);
}

.success-message p {
    margin: 0;
}

.success-message .auth-link {
    color: var(--success);
    font-weight: 500;
}

.success-message .auth-link:hover {
    text-decoration: underline;
}

/* ===== PASSWORD STRENGTH ===== */

.password-strength {
    margin-top: 0.5rem;
}

.password-strength-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

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

.password-strength-text {
    font-size: 0.75rem;
    font-weight: 500;
    display: block;
}

/* ===== AUTH FOOTER ===== */

.auth-footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-subtle);
}

.auth-footer-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin: 0;
}

.auth-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: var(--accent-blue-hover);
    text-decoration: underline;
}

/* ===== VERIFICATION STATES ===== */

.verification-state {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.verification-spinner {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.verification-icon {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.verification-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.verification-text {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin: 0;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 480px) {
    .auth-card {
        padding: var(--spacing-lg);
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .auth-container {
        padding: var(--spacing-md);
    }
}

/* ===== LOGO LINK ===== */

.nav .logo {
    text-decoration: none;
    cursor: pointer;
}

.nav .logo:hover .logo-text {
    color: var(--accent-blue);
}
