/* Forms and Modal styling */

/* Modal containers */
.privacy-modal, .form-modal {
    display: none; /* Hide modals by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.form-modal {
    display: flex; /* Show form modals when created */
    opacity: 1;
    pointer-events: auto;
}

.privacy-modal {
    display: none; /* Privacy modal hidden by default */
    opacity: 0;
    pointer-events: none;
}

.privacy-modal.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* Modal content */
.privacy-content, .form-content {
    background: #222;
    border-radius: 12px;
    padding: 2rem;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    color: #39FF14;
    width: 100%;
    box-sizing: border-box;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    margin: 1rem;
}

.privacy-modal.show .privacy-content, 
.form-modal.show .form-content {
    transform: translateY(0);
}

/* Form styling */
.form-content label {
    color: #39FF14;
    display: block;
    margin-top: 1rem;
    font-weight: 500;
}

.form-content input[type="text"],
.form-content input[type="email"],
.form-content input[type="password"] {
    width: 100%;
    margin-bottom: 1rem;
    background: #111;
    color: #39FF14;
    border: 1px solid #39FF14;
    border-radius: 6px;
    padding: 0.75rem;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-content input[type="text"]:focus,
.form-content input[type="email"]:focus,
.form-content input[type="password"]:focus {
    outline: none;
    border-color: #39FF14;
    box-shadow: 0 0 5px rgba(57, 255, 20, 0.3);
}

/* Form buttons */
.form-content button[type="submit"], 
.form-content button[type="button"] {
    background: transparent;
    color: #C0C0C0;
    border: 2px solid #C0C0C0;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    margin: 0.5rem 0.5rem 0 0;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 100px;
}

.form-content button[type="submit"]:hover,
.form-content button[type="submit"]:active,
.form-content button[type="button"]:hover,
.form-content button[type="button"]:active {
    background: #39FF14;
    color: #000000;
    border-color: #39FF14;
}

/* Close button for modals */
.close-privacy {
    background: transparent;
    color: #C0C0C0;
    border: 2px solid #C0C0C0;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.close-privacy:hover,
.close-privacy:active {
    background: #39FF14;
    color: #000000;
    border-color: #39FF14;
}

/* Form messages */
.form-content #login-message,
.form-content #signup-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 500;
}

.form-content .success-message {
    background: rgba(57, 255, 20, 0.1);
    color: #39FF14;
    border: 1px solid #39FF14;
}

.form-content .error-message {
    background: rgba(255, 69, 58, 0.1);
    color: #FF453A;
    border: 1px solid #FF453A;
}

/* Form container */
#form-container {
    width: 100%;
    max-width: 400px;
    margin-top: 2rem;
}

/* Privacy modal specific content styling */
.privacy-content h2 {
    color: #39FF14;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.privacy-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-content a {
    color: #39FF14;
    text-decoration: underline;
}

.privacy-content a:hover {
    color: #C0C0C0;
}

/* Responsive design for forms */
@media (max-width: 768px) {
    .privacy-content, .form-content {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .privacy-content h2 {
        font-size: 1.25rem;
    }
}