/* Authentication Pages Styles */

.auth-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 20px;
}

.auth-logo img {
    height: 40px;
    margin-right: 10px;
}

.auth-logo span {
    font-size: 24px;
    font-weight: 700;
    color: #4A90E2;
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.auth-header p {
    color: #7f8c8d;
    font-size: 16px;
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    animation: slideDown 0.3s ease;
}

.alert i {
    margin-right: 10px;
    font-size: 18px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Styles */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 14px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #95a5a6;
    font-size: 16px;
}

.input-group input {
    width: 100%;
    padding: 12px 40px 12px 44px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: 'Poppins', sans-serif;
}

.input-group input:focus {
    border-color: #4A90E2;
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.input-group input::placeholder {
    color: #adb5bd;
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
}

.toggle-password:hover {
    color: #4A90E2;
}

.password-hint, .otp-hint {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-label input:checked + .checkmark {
    background: #4A90E2;
    border-color: #4A90E2;
}

.checkbox-label input:checked + .checkmark::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

.forgot-link {
    color: #4A90E2;
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-primary {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Social Login */
.social-login {
    margin-top: 25px;
    text-align: center;
}

.social-login p {
    color: #95a5a6;
    font-size: 14px;
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #e0e0e0;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-social {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    color: #555;
    font-size: 20px;
}

.btn-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-google:hover {
    border-color: #DB4437;
    color: #DB4437;
}

.btn-facebook:hover {
    border-color: #4267B2;
    color: #4267B2;
}

.btn-apple:hover {
    border-color: #000;
    color: #000;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.auth-footer p {
    color: #7f8c8d;
    font-size: 14px;
}

.auth-footer a {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* OTP Input */
.otp-input-group input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 10px;
    font-weight: 600;
    padding: 15px 20px;
}

/* Resend OTP */
.resend-otp {
    text-align: center;
    margin-top: 20px;
}

.resend-otp p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.btn-resend {
    background: none;
    border: none;
    color: #4A90E2;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.btn-resend:hover {
    text-decoration: underline;
}

.btn-resend:disabled {
    color: #95a5a6;
    cursor: not-allowed;
}

/* Form Select */
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    background: #f8f9fa;
    font-family: 'Poppins', sans-serif;
    color: #2c3e50;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2395a5a6' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-select:focus {
    border-color: #4A90E2;
    background-color: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-header h2 {
        font-size: 24px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .social-login p::before,
    .social-login p::after {
        width: 20%;
    }
}
/* ============================================
   CHECKBOX STYLES - FIXED
   ============================================ */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    gap: 10px;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

/* Custom checkmark - visible */
.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: #fff;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #4A90E2;
    border-color: #4A90E2;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label input[type="checkbox"]:focus + .checkmark {
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.checkbox-label:hover .checkmark {
    border-color: #4A90E2;
}

.checkbox-label a {
    color: #4A90E2;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}
/* Additional fixes for checkbox visibility */
@media (max-width: 480px) {
    .checkbox-label {
        font-size: 13px;
        gap: 8px;
    }
    
    .checkmark {
        width: 18px;
        height: 18px;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }
}