/* FORMS.CSS
    Stylesheet for form elements (register.html, login.html)
    This is loaded IN ADDITION to styles.css
*/

.form-container {
    width: 100%;
    max-width: 500px;
    margin: 2rem auto; /* Give it space from the menu */
    padding: 2.5rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.form-container h2 {
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 2rem;
}

/* Plan info box on register.html */
.selected-plan-info {
    padding: 1rem 1.5rem;
    background-color: rgba(0, 123, 255, 0.05);
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.selected-plan-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.selected-plan-info p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Form Button */
.form-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Form Footer Text (e.g., "Already have an account?") */
.form-footer {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-muted);
}

.form-footer a {
    font-weight: 600;
}

/* Form Message (for errors or success) */
.form-message {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
}

.form-message.error {
    background-color: rgba(220, 53, 69, 0.1); /* Red */
    border: 1px solid #dc3545;
    color: #f8d7da;
}

.form-message.success {
    background-color: rgba(40, 167, 69, 0.1); /* Green */
    border: 1px solid #28a745;
    color: #d4edda;
}
