/* ============================================
   AUTH PAGES STYLES
   Reusable styles for login, register, and auth pages
   ============================================ */

/* ============================================
   GRADIENT BACKGROUNDS
   ============================================ */

/* Green Gradient - Primary */
.auth-bg-green {
    background: linear-gradient(135deg, #10b981 0%, #d1fae5 50%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Dark Gradient - Admin */
.auth-bg-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* ============================================
   AUTH CONTAINER
   ============================================ */

.auth-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.auth-container-lg {
    max-width: 900px;
}

.auth-container-md {
    max-width: 450px;
}

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

.auth-header {
    color: white;
    padding: 20px 40px;
    text-align: center;
}

.auth-header-green {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
}

.auth-header-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Logo container in header */
.auth-header > div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.auth-logo {
    height: 110px;
    width: auto;
    object-fit: contain;
}

/* Badge in header */
.auth-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 10px;
}

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

.auth-body {
    padding: 20px 40px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.auth-form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.auth-form-control {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    font-size: 1rem;
}

.auth-form-control:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

/* Checkbox */
.auth-form-check {
    padding-left: 0;
}

.auth-form-check-input {
    margin-left: 0;
    border-radius: 5px;
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
}

.auth-form-check-input:checked {
    background-color: #10b981;
    border-color: #10b981;
}

.auth-form-check-label {
    margin-left: 8px;
}

/* ============================================
   BUTTONS
   ============================================ */

.auth-btn {
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    width: 100%;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.auth-btn-green {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
}

.auth-btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.auth-btn-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.auth-btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 26, 46, 0.3);
}

.auth-btn-secondary {
    background: #6c757d;
}

.auth-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(108, 117, 125, 0.3);
}

/* Small button */
.auth-btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

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

.auth-captcha-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.auth-captcha-display {
    background: white;
    border: 2px dashed #10b981;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #059669;
    letter-spacing: 8px;
    margin-bottom: 10px;
}

/* Captcha refresh link */
.auth-captcha-container a {
    color: #10b981;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
    cursor: pointer;
}

.auth-captcha-container a:hover {
    color: #059669;
    text-decoration: underline !important;
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */

.auth-alert {
    border-radius: 10px;
    border: none;
}

.auth-info-box {
    background: #e7f3ff;
    border-left: 4px solid #2196f3;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.auth-info-box strong {
    color: #1565c0;
}

.auth-warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.auth-warning-box strong {
    color: #856404;
}

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

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 1rem;
}

.auth-link a {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
}

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

.auth-link-small {
    margin-top: 15px;
    font-size: 0.9rem;
}

.auth-link-secondary a {
    color: #6c757d;
    text-decoration: none;
}

.auth-link-secondary a:hover {
    color: #10b981;
}

/* ============================================
   SELECT DROPDOWN
   ============================================ */

.auth-form-select {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    font-size: 1rem;
}

.auth-form-select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

/* ============================================
   SECURITY NOTE
   ============================================ */

.auth-security-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.auth-security-note strong {
    color: #856404;
}

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

@media (max-width: 576px) {
    .auth-header h1 {
        font-size: 2rem;
    }

    .auth-header p {
        font-size: 1rem;
    }

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

    .auth-captcha-display {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }

    /* Responsive logo */
    .auth-header > div {
        gap: 15px;
    }

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

/* Medium screens (tablets) */
@media (min-width: 577px) and (max-width: 768px) {
    .auth-logo {
        height: 70px;
    }
}

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

.text-auth-primary {
    color: #10b981;
}

.bg-auth-gradient {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
}

.border-auth-focus:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25) !important;
}
