/* ========================================
   Authentication Pages Styles
   ======================================== */

/* Container and Layout */
.auth-container {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
}

/* Card Styling */
.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1),
                0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
                box-shadow 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12),
                0 8px 16px rgba(0, 0, 0, 0.08),
                0 2px 4px rgba(0, 0, 0, 0.06);
}

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

.auth-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.938rem;
    color: var(--text-muted);
    margin: 0;
}

/* Form Styling */
.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.938rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-error {
    color: #ef4444;
    font-size: 0.813rem;
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-error::before {
    content: "⚠";
}

.form-help {
    display: block;
    color: var(--text-muted);
    font-size: 0.813rem;
    margin-top: 0.375rem;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    font-family: 'Inter', sans-serif;
}

.btn-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Footer Links */
.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-link-text {
    font-size: 0.938rem;
    color: var(--text-muted);
    margin: 0;
}

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

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

/* Illustration Section */
.auth-illustration {
    display: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    padding: 3rem;
    color: white;
    margin-left: 2rem;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1),
                0 4px 10px rgba(0, 0, 0, 0.08);
}

.illustration-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.illustration-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.illustration-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.illustration-text {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.illustration-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Alert Styling */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.alert-danger {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
}

.alert-success {
    background: #f0fdf4;
    color: #22c55e;
    border: 1px solid #d1fae5;
}

/* Responsive Design - Tablet and Desktop */
@media (min-width: 992px) {
    .auth-container {
        padding: 3rem 2rem;
    }

    .auth-illustration {
        display: flex;
    }

    .auth-card {
        padding: 3rem;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 576px) {
    .auth-container {
        padding: 1.5rem 1rem;
    }

    .auth-card {
        padding: 1.5rem;
        border-radius: 8px;
    }

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

    .auth-subtitle {
        font-size: 0.875rem;
    }

    .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    .btn-submit {
        padding: 0.75rem 1.25rem;
        font-size: 0.938rem;
    }
}

/* Animation for form validation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.form-control.error {
    border-color: #ef4444;
    animation: shake 0.3s ease;
}

/* Loading state for submit button */
.btn-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-submit.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 0.5rem;
}

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

/* Success Icon Wrapper */
.success-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.success-icon {
    font-size: 3.5rem;
    color: var(--success-color);
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Auth Message Section */
.auth-message {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.auth-message p {
    margin-bottom: 0.75rem;
}

.auth-message p:last-child {
    margin-bottom: 0;
}

/* Email Highlight */
.email-highlight {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    word-break: break-all;
}

.email-highlight i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Auth Actions Section */
.auth-actions {
    margin-bottom: 1.5rem;
}

/* Resend Button */
.btn-resend {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.938rem;
    font-weight: 500;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.btn-resend:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

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

/* Secondary Submit Button */
.btn-submit-secondary {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--text-muted);
    background: white;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn-submit-secondary:hover {
    background: var(--light-gray);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* Auth Messages Container */
.auth-messages {
    margin-bottom: 1rem;
}

.auth-messages .alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Alert Warning Style */
.alert-warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
}

/* Alert Info Style */
.alert-info {
    background: #ecfeff;
    color: #0891b2;
    border: 1px solid #cffafe;
}
