/**
 * ChaosBoost Auth Modals - New Design
 * Matches the provided screenshots
 */

/* Modal Overlay */
.chaosboost-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(165, 128, 25, 0.95) 0%, rgba(63, 49, 10, 0.95) 100%);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

/* Modal Content Container */
.chaosboost-modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(165, 128, 25, 0.98) 0%, rgba(63, 49, 10, 0.98) 100%);
    margin: 5% auto;
    padding: 40px 30px;
    width: 90%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Close Button */
.chaosboost-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #FFFFFF;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chaosboost-modal-close:hover {
    color: #FFC908;
    transform: rotate(90deg);
}

/* Modal Title */
.modal-title {
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #FFFFFF;
    margin: 0 0 25px 0;
    text-transform: none;
}

/* Social Login Buttons */
.social-login-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.social-btn {
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    background: #000000;
    color: #FFFFFF;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.social-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-btn:active {
    transform: translateY(0);
}

.social-btn svg {
    flex-shrink: 0;
}

/* Divider */
.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #FFFFFF;
    padding: 0 15px;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #FFFFFF;
    margin: 0;
}

.form-group input {
    padding: 14px 16px;
    background: #000000;
    border: 1px solid rgba(255, 201, 8, 0.2);
    border-radius: 12px;
    color: #FFFFFF;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
    outline: none;
    border-color: #FFC908;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 201, 8, 0.1);
}

/* Checkbox Group */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 5px 0;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: transparent;
    border: 2px solid rgba(255, 201, 8, 0.5);
    border-radius: 4px;
    cursor: pointer;
    accent-color: #FFC908;
    margin-top: 2px;
}

.form-checkbox label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #FFFFFF;
    cursor: pointer;
    margin: 0;
}

.form-checkbox .terms-link {
    color: #FFC908;
    text-decoration: none;
    font-weight: 700;
}

.form-checkbox .terms-link:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    padding: 16px 24px;
    background: #FFC908;
    border: none;
    border-radius: 12px;
    color: #000000;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-transform: capitalize;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-submit:hover {
    background: #FFD900;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 201, 8, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 20px;
}

.forgot-password {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #FFC908;
}

.switch-form {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    color: #FFFFFF;
    margin: 0;
}

.switch-form a {
    color: #FFC908;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.switch-form a:hover {
    text-decoration: underline;
}

/* Auth Messages */
.auth-message {
    padding: 14px 16px;
    border-radius: 10px;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
    display: none;
}

.auth-message.success {
    background: rgba(0, 255, 0, 0.15);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

.auth-message.error {
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chaosboost-modal-content {
        width: 95%;
        padding: 35px 25px;
        margin: 10% auto;
    }
    
    .social-login-buttons {
        grid-template-columns: 1fr;
    }
    
    .modal-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .chaosboost-modal-content {
        padding: 30px 20px;
    }
    
    .social-btn {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .btn-submit {
        padding: 14px 20px;
        font-size: 16px;
    }
}