/**
 * Authentication Pages Styles
 * Consistent design with admin pages
 */

@import url('admin-commons.css');

/* ==========================================================================
   AUTH PAGE LAYOUT
   ========================================================================== */

.auth-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fb 0%, #e8ecf4 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.auth-card-lg {
    max-width: 800px;
}

/* ==========================================================================
   AUTH HEADER
   ========================================================================== */

.auth-header {
    background: linear-gradient(135deg, #243f81 0%, #325bc5 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent 0%, #d69e2e 50%, transparent 100%);
}

.auth-header-logo {
    margin-bottom: 15px;
}

.auth-header-logo img {
    height: 80px;
    width: auto;
}

.auth-header h4 {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.auth-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.auth-header i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.9;
}

/* ==========================================================================
   AUTH BODY
   ========================================================================== */

.auth-body-content {
    padding: 30px;
}

/* ==========================================================================
   FORM STYLES - Consistent with Admin Pages
   ========================================================================== */

.auth-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
}

.auth-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.auth-form .form-control:focus {
    border-color: #243f81;
    box-shadow: 0 0 0 0.25rem rgba(36, 63, 129, 0.15);
    background-color: white;
    outline: none;
}

.auth-form .form-control::placeholder {
    color: #adb5bd;
}

.auth-form .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.auth-form .form-select:focus {
    border-color: #243f81;
    box-shadow: 0 0 0 0.25rem rgba(36, 63, 129, 0.15);
    background-color: white;
    outline: none;
}

/* Input Group */
.auth-form .input-group {
    border-radius: 10px;
    overflow: hidden;
}

.auth-form .input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-right: none;
    color: #495057;
    padding: 12px 15px;
}

.auth-form .input-group .form-control {
    border-radius: 0;
    border-left: none;
}

.auth-form .input-group .form-control:focus {
    border-color: #243f81;
}

.auth-form .input-group:focus-within {
    border-color: #243f81;
    box-shadow: 0 0 0 0.25rem rgba(36, 63, 129, 0.15);
}

.auth-form .input-group:focus-within .input-group-text,
.auth-form .input-group:focus-within .form-control {
    border-color: #243f81;
}

/* Toggle Password Button */
.auth-form .toggle-password {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-left: none;
    color: #495057;
    padding: 12px 15px;
    border-radius: 0 10px 10px 0;
}

.auth-form .toggle-password:hover {
    background-color: #e9ecef;
    color: #243f81;
}

.auth-form .toggle-password:focus {
    box-shadow: none;
}

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

.auth-btn {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #243f81 0%, #325bc5 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(36, 63, 129, 0.3);
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, #1a3369 0%, #243f81 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(36, 63, 129, 0.4);
    color: white;
}

.auth-btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(36, 63, 129, 0.3);
    outline: none;
}

.auth-btn-outline {
    background: transparent;
    border: 2px solid #243f81;
    color: #243f81;
}

.auth-btn-outline:hover {
    background: #243f81;
    color: white;
    transform: translateY(-2px);
}

/* ==========================================================================
   ALERT STYLES
   ========================================================================== */

.auth-alert {
    border-radius: 10px;
    padding: 15px 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.auth-alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.auth-alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.auth-alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* ==========================================================================
   LINK STYLES
   ========================================================================== */

.auth-link {
    color: #243f81;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d69e2e;
    transition: width 0.3s ease;
}

.auth-link:hover {
    color: #d69e2e;
}

.auth-link:hover::after {
    width: 100%;
}

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

.password-strength {
    height: 6px;
    margin-top: 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
    background-color: #e9ecef;
    overflow: hidden;
}

.password-strength::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.password-strength.weak::after {
    width: 25%;
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.password-strength.medium::after {
    width: 50%;
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.password-strength.strong::after {
    width: 75%;
    background: linear-gradient(90deg, #10b981, #059669);
}

.password-strength.very-strong::after {
    width: 100%;
    background: linear-gradient(90deg, #243f81, #325bc5);
}

.password-requirements {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 12px;
    padding-left: 0;
    list-style: none;
}

.password-requirements li {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.password-requirements li i {
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.password-requirements li.valid {
    color: #10b981;
}

.password-requirements li.valid i {
    color: #10b981;
}

.password-requirements li.invalid {
    color: #dc2626;
}

.password-requirements li.invalid i {
    color: #dc2626;
}

/* ==========================================================================
   REGISTER FORM SPECIFIC
   ========================================================================== */

.register-section-title {
    border-bottom: 2px solid #d69e2e;
    padding-bottom: 10px;
    margin-bottom: 25px;
    margin-top: 25px;
    color: #243f81;
    font-weight: 700;
    font-size: 1.1rem;
}

.register-section-title:first-child {
    margin-top: 0;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #6c757d;
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.auth-divider span {
    padding: 0 15px;
}

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

@media (max-width: 576px) {
    .auth-card {
        max-width: 100%;
        margin: 10px;
    }

    .auth-header {
        padding: 25px 20px;
    }

    .auth-header-logo img {
        height: 60px;
    }

    .auth-header h4 {
        font-size: 1.3rem;
    }

    .auth-body-content {
        padding: 25px 20px;
    }

    .auth-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

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

.auth-card {
    animation: fadeIn 0.5s ease-out;
}

.auth-form .mb-3 {
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

.auth-form .mb-3:nth-child(1) { animation-delay: 0.1s; }
.auth-form .mb-3:nth-child(2) { animation-delay: 0.2s; }
.auth-form .mb-3:nth-child(3) { animation-delay: 0.3s; }
.auth-form .mb-3:nth-child(4) { animation-delay: 0.4s; }
.auth-form .mb-3:nth-child(5) { animation-delay: 0.5s; }

.auth-btn {
    animation: fadeIn 0.5s ease-out;
    animation-delay: 0.6s;
    animation-fill-mode: both;
}
