/* Authentication Styles */
.auth-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/choose-us-image-01.png') no-repeat center center;
    background-size: cover;
    opacity: 0.05;
    z-index: 1;
}

.auth-card {
    background: linear-gradient(145deg, #ffffff, #f9f9f9);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, #DC143C, #FF0000);
    border-radius: 20px;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: #000000;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.auth-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(220, 20, 60, 0.3);
    border-radius: 10px;
    color: #000000;
    font-size: 16px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: #DC143C;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.2);
    outline: none;
}

.form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #DC143C;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #FF0000;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #000000;
    font-size: 14px;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #DC143C;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #DC143C;
    border-color: #DC143C;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.forgot-password {
    color: #DC143C;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #FF0000;
    text-decoration: none;
}

.auth-btn {
    background: linear-gradient(145deg, #DC143C, #FF0000);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auth-btn:hover::before {
    left: 100%;
}

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

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

.auth-footer {
    text-align: center;
    margin-bottom: 30px;
}

.auth-footer p {
    color: #000000;
    margin: 0;
    font-size: 14px;
}

.auth-footer a {
    color: #DC143C;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #FF0000;
    text-decoration: none;
}

.social-login {
    margin-top: 30px;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(220, 20, 60, 0.3);
}

.divider span {
    background: #ffffff;
    color: #DC143C;
    padding: 0 20px;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.social-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(220, 20, 60, 0.3);
    border-radius: 10px;
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: #DC143C;
    transform: translateY(-2px);
}

.google-btn:hover {
    background: #db4437;
    border-color: #db4437;
}

.facebook-btn:hover {
    background: #3b5998;
    border-color: #3b5998;
}

.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.form-control.error {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.password-strength {
    margin-top: 5px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength.weak .password-strength-bar {
    background: #ff6b6b;
    width: 25%;
}

.password-strength.fair .password-strength-bar {
    background: #ffa726;
    width: 50%;
}

.password-strength.good .password-strength-bar {
    background: #66bb6a;
    width: 75%;
}

.password-strength.strong .password-strength-bar {
    background: #4caf50;
    width: 100%;
}

.terms-link {
    color: #7DB0DE;
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: #83AFD6;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-section {
        padding: 80px 15px 30px;
    }
    
    .auth-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .auth-header h2 {
        font-size: 28px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 20px 15px;
    }
    
    .auth-header h2 {
        font-size: 24px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .auth-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Animation for form validation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-control.error {
    animation: shake 0.5s ease-in-out;
}

/* Loading state */
.auth-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Login Modal Styles */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-modal.show {
    opacity: 1;
    visibility: visible;
}

.login-modal-content {
    background: linear-gradient(145deg, #ffffff, #f9f9f9);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    backdrop-filter: blur(10px);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.login-modal.show .login-modal-content {
    transform: scale(1);
}

.login-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, #DC143C, #FF0000);
    border-radius: 20px;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.login-modal-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.login-modal-header h2 {
    color: #000000;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-modal-header p {
    color: #DC143C;
    font-size: 14px;
    margin: 0;
}

.close-modal {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    background: #ff5252;
    transform: scale(1.1);
}

.login-modal-body {
    margin-bottom: 20px;
}

.modal-auth-form {
    margin-bottom: 20px;
}

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

.modal-auth-form .form-control {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(220, 20, 60, 0.3);
    border-radius: 10px;
    color: #000000;
    font-size: 14px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.modal-auth-form .form-control:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: #DC143C;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.2);
    outline: none;
}

.modal-auth-form .form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.modal-auth-form .password-input {
    position: relative;
}

.modal-auth-form .password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #DC143C;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    transition: color 0.3s ease;
}

.modal-auth-form .password-toggle:hover {
    color: #FF0000;
}

.modal-auth-form .checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #000000;
    font-size: 12px;
    margin: 0;
}

.modal-auth-form .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #DC143C;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.modal-auth-form .checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #DC143C;
    border-color: #DC143C;
}

.modal-auth-form .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.modal-auth-form .remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.modal-auth-form .forgot-password {
    color: #DC143C;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.modal-auth-form .forgot-password:hover {
    color: #FF0000;
    text-decoration: none;
}

.modal-auth-form .auth-btn {
    background: linear-gradient(145deg, #DC143C, #FF0000);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    cursor: button;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-auth-form .auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modal-auth-form .auth-btn:hover::before {
    left: 100%;
}

.modal-auth-form .auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 20, 60, 0.3);
}

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

.modal-auth-footer {
    text-align: center;
    margin-top: 20px;
}

.modal-auth-footer p {
    color: #000000;
    margin: 0;
    font-size: 12px;
}

.modal-auth-footer a {
    color: #DC143C;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.modal-auth-footer a:hover {
    color: #FF0000;
    text-decoration: none;
}

/* Content Overlay */
.content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.content-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Blur content when modal is open */
body.modal-open {
    overflow: hidden;
}

body.modal-open .main-content {
    filter: blur(5px);
    pointer-events: none;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .login-modal-content {
        padding: 30px 20px;
        margin: 20px;
        max-width: none;
        width: calc(100% - 40px);
    }
    
    .login-modal-header h2 {
        font-size: 24px;
    }
    
    .modal-auth-form .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .login-modal-content {
        padding: 20px 15px;
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .login-modal-header h2 {
        font-size: 20px;
    }
    
    .modal-auth-form .form-control {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .modal-auth-form .auth-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}
