


#login-modal .modal-content,
#register-modal .modal-content,
#forgot-password-modal .modal-content {
    max-width: 440px;
    width: 95%;
    background-color: #1e1e2d;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    border: none;
}

.modal-header {
    padding: 20px;
    background-color: #1e1e2d;
    border-bottom: none;
    position: relative;
}

.modal-header h2 {
    color: #fff;
    font-size: 24px;
    text-align: center;
    width: 100%;
    margin: 0;
    font-weight: 600;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
}

.modal-body {
    padding: 20px;
    background-color: #1e1e2d;
}


.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
}


.form-input-icon {
    position: relative;
}

.form-input-icon i {
    position: absolute;
    left: 12px;
    top: 44px; 
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    z-index: 1;
    pointer-events: none;
}

.form-input-icon input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border-radius: 8px;
    border: none;
    background-color: #2c2c42; 
    color: #fff;
    font-size: 16px;
    box-sizing: border-box;
    height: 45px;
}


.form-group.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.form-group.remember-me input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: #8a2be2;
}

.form-group.remember-me label {
    margin-bottom: 0;
    font-size: 14px;
    cursor: pointer;
}


#loginButton, #registerButton {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background-color: #8a2be2;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 45px;
    margin-top: 10px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #6e57e0, #8659e9);
}

#loginButton:hover, #registerButton:hover {
    background-color: #7b25cc;
}


.login-signup-separator {
    display: flex;
    align-items: center;
    margin: 15px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.login-signup-separator::before,
.login-signup-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.login-signup-separator span {
    padding: 0 15px;
    color: #6c757d;
    font-size: 14px;
}


.alternative-action {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

.alternative-action p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.alternative-action a {
    color: #8a2be2;
    text-decoration: none;
    font-weight: 500;
}

.alternative-action a:hover {
    text-decoration: underline;
}


.form-group.terms-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.form-group.terms-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-top: 2px;
    accent-color: #8a2be2;
}

.form-group.terms-checkbox label {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
}

.form-group.terms-checkbox a {
    color: #8a2be2;
    text-decoration: none;
}

.form-group.terms-checkbox a:hover {
    text-decoration: underline;
}


#payment-modal .modal-content {
    max-width: 480px; 
    width: 95%;
}


#payment-modal .modal-header {
    padding: 20px 40px; 
    position: relative;
}

#payment-modal .modal-header h2 {
    font-size: 19px; 
    white-space: normal; 
    max-width: 80%; 
    margin: 0 auto; 
    line-height: 1.3; 
    overflow-wrap: break-word; 
    text-align: center; 
}

#payment-modal .close-modal {
    right: 15px;
    top: 15px;
    position: absolute;
    z-index: 5;
}


#forgot-password-modal .modal-body {
    padding: 20px 30px 30px;
}

#forgot-password-modal .form-description {
    color: #a9a9b9;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

#forgot-password-modal .success-message {
    background-color: rgba(34, 204, 34, 0.1);
    border: 1px solid rgba(34, 204, 34, 0.3);
    padding: 15px;
    border-radius: 8px;
    color: #22cc22;
    text-align: center;
    margin: 10px 0 20px;
    display: none;
}

#forgot-password-modal .error-message {
    background-color: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    padding: 15px;
    border-radius: 8px;
    color: #ff4d4d;
    text-align: center;
    margin: 10px 0 20px;
    display: none;
}

#forgot-password-modal .alternative-action {
    margin-top: 20px;
}


.back-to-login {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    text-decoration: none;
    margin-top: 15px;
}

.back-to-login i {
    margin-right: 5px;
    font-size: 12px;
}

.back-to-login:hover {
    text-decoration: underline;
}


.captcha-loading {
    display: block;
    text-align: center;
    margin: 10px 0;
    font-size: 14px;
    color: #7f7f8b;
    position: relative;
    height: 30px;
    line-height: 30px;
}

.captcha-loading:after {
    content: 'Loading captcha...';
}

.captcha-loading:before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #4a4a5e;
    border-top: 2px solid #6c5ce7;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
    animation: captcha-spin 1s linear infinite;
}

@keyframes captcha-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#forgot-password-captcha-container {
    margin: 20px 0;
}


.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    position: absolute;
    right: calc(50% - 2.5rem);
    top: calc(50% - 0.5rem);
    animation: spin 1s linear infinite;
}


.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {transform: rotate(360deg);}
}


.notification {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.success {
    background-color: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #2ed573;
}

.notification.error {
    background-color: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ff6b81;
}


#globalNotification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

#globalNotification.show {
    opacity: 1;
    transform: translateY(0);
}

#globalNotification.success {
    background-color: rgba(32, 140, 58, 0.95);
    color: white;
}

#globalNotification.error {
    background-color: rgba(214, 43, 59, 0.95);
    color: white;
}

@media (max-width: 768px) {
    #globalNotification {
        width: 90%;
        left: 5%;
        right: 5%;
        text-align: center;
    }
}
