:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --danger-color: #f72585;
    --success-color: #4cc9f0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: 
    radial-gradient(circle at 10% 20%, rgba(67, 97, 238, 0.15) 0%, transparent 20%),
    radial-gradient(circle at 90% 30%, rgba(244, 63, 94, 0.15) 0%, transparent 25%),
    radial-gradient(circle at 50% 80%, rgba(254, 202, 87, 0.15) 0%, transparent 20%),
    linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    line-height: 1.6;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
}

.home-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.home-link:hover {
    color: var(--secondary-color);
}

.login-box {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 1.8rem;
    color: var(--dark-color);
    font-weight: 600;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}


/* Modal open state for body */
body.modal-open {
    overflow: hidden;
}

/* Loading states */
button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success message styling */
#reset-success-modal .modal-content p {
    color: #28a745;
    margin: 1rem 0;
    text-align: center;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
	width: 100%;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-color);
	margin-right: auto; /* Pushes it to the left */
}

.remember-me input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
}

.remember-me input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-me input:checked ~ .checkmark:after {
    display: block;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
	margin-left: auto; /* Pushes it to the right */
    padding-left: 1rem; /* Adds some spacing */
}

.forgot-password:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.login-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.login-btn:hover {
    background-color: var(--secondary-color);
}

.additional-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    text-align: center;
}

.renew-link, .register-link {
    color: var(--gray-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.renew-link:hover, .register-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}



/* Demo Accounts Styling */
.demo-accounts {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.demo-accounts h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.demo-accounts p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}



.footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--box-shadow);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--dark-color);
}

.modal h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    text-align: center;
}

.modal p {
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 1rem;
}

.modal-btn:hover {
    background-color: var(--secondary-color);
}







/* Additional Links Styling */
.link-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}



.test-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.test-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: left;
}

.test-btn.gold {
    background-color: #ffd700;
    color: #8b6b00;
}

.test-btn.basic {
    background-color: #b3d9ff;
    color: #0056b3;
}

.test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-text {
    flex-grow: 1;
    font-weight: 500;
}

@media (max-width: 480px) {
    .test-buttons {
        gap: 0.6rem;
    }
    
    .test-btn {
        padding: 0.7rem 1rem;
    }
}


.home-link-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.back-home:hover {
    background-color: rgba(67, 97, 238, 0.2);
    transform: translateY(-1px);
}


.back-home {
    display: inline-flex;
    padding: 0.8rem;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
}

.home-icon {
    width: 24px;
    height: 24px;
}

.back-home span {
    font-size: 0.95rem;
}




/* Responsive Styles */
@media (max-width: 768px) {
    .login-box {
        padding: 1.5rem;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1rem;
    }
    
    .options-row {
        flex-direction: row; /* Ensures horizontal layout */
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .additional-links {
        gap: 0.8rem;
    }
	
	.remember-me {
        margin-right: 0;
    }
    
    .forgot-password {
        margin-left: 0;
        padding-left: 0;
    }
	
	
	

	
}








	
	
	/* Registration Form Specific Styles */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: #f9fafc;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.input-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.half-width {
    flex: 1;
}

.form-note {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-top: 0.5rem;
}

.form-note a {
    color: var(--primary-color);
}

.checkbox-group {
    margin: 1.5rem 0;
}

.terms-note {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-top: 0.5rem;
    margin-left: 28px;
}

.recaptcha-container {
    margin: 1.5rem 0;
}

textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    resize: vertical;
    min-height: 100px;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

@media (max-width: 768px) {
    .input-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .half-width {
        width: 100%;
    }
}
	

.captcha-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.captcha-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.captcha-label input {
    width: 18px;
    height: 18px;
}


/* Add to your existing styles */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Disabled state styling */
#proceed-login:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}