/* =========================
   AUTH PAGES - MATCHING MAIN STYLE
========================= */

.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f7f9fa;
}

.auth-wrapper {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

/* =========================
   AUTH CARD
========================= */
.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px 35px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #ececec;
}

.auth-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

/* =========================
   AUTH BRAND
========================= */
.auth-brand {
    text-align: center;
    margin-bottom: 30px;
}

.auth-brand .brand-icon {
    font-size: 48px;
    color: #ff7a00;
    margin-bottom: 12px;
    display: block;
}

.auth-brand h1 {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.auth-brand .subtitle {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
}

/* =========================
   AUTH FORM
========================= */
.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    margin-bottom: 6px;
    display: block;
}

.auth-form .form-control {
    height: 48px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8fafc;
    width: 100%;
    font-family: 'Exo 2', Arial, sans-serif;
}

.auth-form .form-control:focus {
    border-color: #ff7a00;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
    outline: none;
}

.auth-form .form-control.is-invalid {
    border-color: #e53935;
}

.auth-form .form-control.is-valid {
    border-color: #22c55e;
}

/* =========================
   INPUT WITH ICON
========================= */
.input-group-icon {
    position: relative;
}

.input-group-icon .form-control {
    padding-left: 45px;
}

.input-group-icon .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    transition: color 0.3s ease;
    pointer-events: none;
}

.input-group-icon .form-control:focus + .input-icon {
    color: #ff7a00;
}

/* =========================
   PASSWORD TOGGLE
========================= */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #ff7a00;
}

.password-toggle:focus {
    outline: none;
}

/* =========================
   FORGOT LINK
========================= */
.forgot-link {
    text-align: right;
    margin: -6px 0 16px 0;
}

.forgot-link a {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link a:hover {
    color: #ff7a00;
}

/* =========================
   CUSTOM CHECKBOX
========================= */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.custom-checkbox .form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-checkbox .form-check-input:checked {
    background-color: #ff7a00;
    border-color: #ff7a00;
}

.custom-checkbox .form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

.custom-checkbox .form-check-label {
    font-size: 14px;
    color: #334155;
    cursor: pointer;
}

.custom-checkbox .form-check-label a {
    color: #ff7a00;
    text-decoration: none;
}

.custom-checkbox .form-check-label a:hover {
    text-decoration: underline;
}

/* =========================
   AUTH BUTTON
========================= */
.auth-btn {
    height: 50px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ff7a00;
    border: none;
    color: #fff;
    width: 100%;
    margin-top: 6px;
    position: relative;
    cursor: pointer;
    font-family: 'Exo 2', Arial, sans-serif;
}

.auth-btn:hover {
    background: #e56e00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.3);
}

.auth-btn:active {
    transform: translateY(0px);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-btn .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================
   SOCIAL LOGIN
========================= */
.social-login {
    margin-top: 20px;
}

.social-login .divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.social-login .divider::before,
.social-login .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.social-login .divider span {
    padding: 0 15px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

/* =========================
   AUTH LINKS
========================= */
.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.auth-links p {
    margin-bottom: 6px;
    color: #64748b;
    font-size: 14px;
}

.auth-links a {
    color: #ff7a00;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #e56e00;
    text-decoration: underline;
}

.auth-links .back-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #94a3b8;
}

.auth-links .back-link:hover {
    color: #ff7a00;
    text-decoration: none;
}

/* =========================
   ALERTS
========================= */
.auth-alerts {
    margin-bottom: 20px;
}

.auth-alerts .alert {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Exo 2', Arial, sans-serif;
}

.auth-alerts .alert-success {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.auth-alerts .alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #e53935;
}

.auth-alerts .alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.auth-alerts .alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.auth-alerts .alert-icon {
    font-size: 18px;
}

/* =========================
   PASSWORD STRENGTH
========================= */
.password-strength {
    margin-top: 8px;
    height: 4px;
    border-radius: 2px;
    background: #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
}

.password-strength .strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.5s ease;
}

.password-strength .strength-bar.weak {
    width: 25%;
    background: #e53935;
}

.password-strength .strength-bar.medium {
    width: 50%;
    background: #f59e0b;
}

.password-strength .strength-bar.strong {
    width: 75%;
    background: #3b82f6;
}

.password-strength .strength-bar.very-strong {
    width: 100%;
    background: #22c55e;
}

.password-strength-label {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 5px;
    display: block;
}

/* =========================
   PASSWORD REQUIREMENTS
========================= */
.password-requirements {
    margin-top: 10px;
    padding: 0;
    list-style: none;
}

.password-requirements li {
    font-size: 13px;
    color: #94a3b8;
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.password-requirements li .req-icon {
    font-size: 14px;
    transition: all 0.3s ease;
}

.password-requirements li.valid {
    color: #22c55e;
}

.password-requirements li.valid .req-icon {
    color: #22c55e;
}

.password-requirements li.invalid .req-icon {
    color: #94a3b8;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 576px) {
    .auth-card {
        padding: 25px 20px;
    }
    
    .auth-brand h1 {
        font-size: 22px;
    }
    
    .auth-form .form-control {
        height: 44px;
        font-size: 14px;
    }
    
    .auth-btn {
        height: 44px;
        font-size: 15px;
    }

    .auth-brand .brand-icon {
        font-size: 40px;
    }
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeInUp 0.6s ease;
}