/* Authentication Pages CSS - auth.css */
/* Uses existing CSS variables for consistency */

:root {
    --primary-color: #005A42;
    --primary-light: #007B5A;
    --secondary-color: #6c757d;
    --border-color: #e1e5e9;
    --bg-light: #f8f9fa;
    --text-dark: #2c3e50;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-medium: 0 3px 6px rgba(0,0,0,0.07);
    --transition: all 0.3s ease;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --uniform-gap: 20px;
}

/* ==========================================================================
   AUTHENTICATION LAYOUT
   ========================================================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 0;
}

.auth-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.auth-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.auth-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
    color: #fff;
}

.auth-body {
    padding: 40px;
}

.auth-form-container {
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   FORM STYLING
   ========================================================================== */

.auth-form-group {
    /*margin-bottom: 20px;*/
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    /*margin-bottom: 20px;*/
}

.auth-input {
    width: 100%;
    height:auto!important;
    padding: 12px 16px!important;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px!important;
    transition: var(--transition);
    background: #fff;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 90, 66, 0.1);
}

.auth-input::placeholder {
    color: #adb5bd;
}

.auth-textarea {
    min-height: 100px;
    resize: vertical;
}

/* ==========================================================================
   BUTTON STYLING
   ========================================================================== */

.auth-submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 90, 66, 0.3);
}

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

.auth-submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.auth-submit-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   ERROR HANDLING
   ========================================================================== */

.auth-error {
    color: var(--danger-color);
    font-size: 13px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

.auth-input.error {
    border-color: var(--danger-color);
    background: #fff5f5;
}

.auth-success {
    color: var(--success-color);
    font-size: 13px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

.auth-input.success {
    border-color: var(--success-color);
    background: #f0fff4;
}

/* ==========================================================================
   ALERT MESSAGES
   ========================================================================== */

.auth-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
    font-size: 14px;
}

.auth-alert.success {
    background: #d4edda;
    color: #155724;
    border-left-color: var(--success-color);
}

.auth-alert.error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: var(--danger-color);
}

.auth-alert.warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: var(--warning-color);
}

/* ==========================================================================
   ADDITIONAL LINKS
   ========================================================================== */

.auth-footer {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-top: 1px solid #e9ecef;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

.auth-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
    color: var(--secondary-color);
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
    z-index: 1;
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   CAPTCHA SECTION
   ========================================================================== */

.auth-captcha {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    border: 1px dashed #dee2e6;
}

.auth-captcha p {
    margin: 0;
    color: var(--warning-color);
    font-weight: 500;
}

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

@media (max-width: 768px) {
    .auth-body {
        padding: 30px 20px;
    }
    
    .auth-header {
        padding: 25px 20px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .auth-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .auth-form-group {
        margin-bottom: 15px;
    }
    
    .auth-input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .auth-submit-btn {
        padding: 12px 18px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 10px;
    }
    
    .auth-wrapper {
        border-radius: 8px;
    }
    
    .auth-body {
        padding: 20px 15px;
    }
    
    .auth-header {
        padding: 20px 15px;
    }
    
    .auth-header h1 {
        font-size: 22px;
    }
    
    .auth-header p {
        font-size: 14px;
    }
}

/* ==========================================================================
   BREADCRUMB OVERRIDE
   ========================================================================== */

.ltn__breadcrumb-area {
    margin-bottom: 0 !important;
    padding: 40px 0 !important;
}

.ltn__breadcrumb-area .page-title {
    font-size: 32px;
}

/* ==========================================================================
   LOGIN/REGISTER SPECIFIC STYLES
   ========================================================================== */

.login-container {
    max-width: 500px;
}

.register-container {
    max-width: 700px;
}

/* Login sidebar for existing design compatibility */
.login-sidebar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.login-sidebar h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.login-sidebar p {
    color: var(--secondary-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.sidebar-btn {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--ltn__heading-font);
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.sidebar-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

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

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.fade-in {
    animation: fadeIn 0.5s ease;
}

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