body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
}

.background {
    background: linear-gradient(135deg, #2c3e50, #000d1a);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.signup-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    width: 350px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.title-container h1 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ffffff;
}

.title-container h1 span.orange {
    color: #ff6900;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
    position: relative; /* Needed for the popover positioning */
}

.input-group label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.input-group input, .input-group select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    appearance: none;
}

/* Dropdown Styling */
.input-group select option {
    background-color: #2c3e50;
    color: #ffffff;
}

/* Password Guidelines Popover */
.popover {
    display: none;
    position: absolute;
    background: rgba(44, 62, 80, 0.9); /* Dark background */
    color: #ffffff;
    border-radius: 8px;
    padding: 10px;
    font-size: 12px;
    width: 300px;
    top: 50px;
    left: 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    line-height: 1.5;
}

.popover ul {
    margin: 0;
    padding-left: 20px;
}

.popover li {
    list-style-type: disc;
}

.signup-btn {
    background: linear-gradient(90deg, #ff4e00, #a500d6);
    border: none;
    color: #ffffff;
    font-weight: bold;
    border-radius: 25px;
    padding: 10px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s ease;
}

.signup-btn:hover {
    background: linear-gradient(90deg, #ff6900, #9000cc);
    transform: scale(1.05);
}

.login-text {
    margin-top: 20px;
    font-size: 12px;
    color: #ffffff;
}

.login-text a {
    color: #ff6900;
    text-decoration: none;
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(44, 62, 80, 0.95); /* Dark translucent background */
    color: #ffffff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    width: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-size: 16px;
}

.modal-content h2 {
    color: rgba(44, 62, 80, 0.95); /* Orange title */
    margin-bottom: 10px;
    font-size: 20px;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.8); /* Lighter white for message */
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-content button {
    background: linear-gradient(90deg, #ff4e00, #a500d6); /* Signup button gradient */
    color: #ffffff;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-content button:hover {
    background: linear-gradient(90deg, #ff6900, #9000cc);
    transform: scale(1.05);
}

.modal.error .modal-content {
    background: rgba(139, 0, 0, 0.95); /* Dark red background for error */
    border: 2px solid rgba(44, 62, 80, 0.95); /* Orange border */
}

.modal.error h2 {
    color: rgba(44, 62, 80, 0.95); /* Orange title */
}

.modal.error p {
    color: #ffffff; /* White for message */
}

/* Warning Styling */
.modal.warning .modal-content {
    background: rgba(44, 62, 80, 0.95); /* Orange background for warnings */
    border: 2px solid rgba(44, 62, 80, 0.95); /* Orange border */
}

.modal.warning h2 {
    color: rgba(44, 62, 80, 0.95); /* Orange title */
}

.modal.warning p {
    color: #ffffff; /* White message text */
}

.modal.success .modal-content {
    background: rgba(44, 62, 80, 0.95); /* Green background for success */
    border: 2px solid rgba(44, 62, 80, 0.95); /* Green border */
}

.modal.success h2 {
    color: #2ecc71; /* Green title */
}

.modal.success p {
    color: #ffffff; /* White message text */
}

.modal.success {
    /* Add success-specific styling */
    border-color: #4CAF50;
}

.modal.success .modal-title {
    color: #4CAF50;
}

.input-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    font-size: 16px;
    margin-top: 5px;
}


/* OTP */

.captcha-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

#signup-form .g-recaptcha {
    margin: 0 auto;
}

/* Small devices adjustments */
@media (max-width: 320px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }
}

/* Add styles for OTP verification page */
.description {
    text-align: center;
    margin-bottom: 20px;
    color: #555;
}

/* Improve modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal.success .modal-content {
    border-top: 4px solid #4CAF50;
}

.modal.warning .modal-content {
    border-top: 4px solid #FFC107;
}

.modal.error .modal-content {
    border-top: 4px solid #F44336;
}

#signup-modal-title {
    margin-top: 0;
    color: #2ecc71;
}

#signup-modal-message {
    color: #ffffff;
    margin-bottom: 20px;
}

#signup-modal-close {
    min-width: 100px;
    padding: 10px 15px;
}