/*This is the new style sheet for the registration forms*/

/* ------------------------
   Base body styles
------------------------ */
body {
    background: #f2f6fb;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    margin: 0;
    padding: 0;
}

/* ------------------------
   Shared form box styles
------------------------ */
.form-box, .form-container {
    max-width: 380px;
    width: 90%;
    margin: 80px auto; /* center horizontally */
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center; /* center text inside box */
}

/* Headings inside forms */
.form-box h2, .form-container h1 {
    margin-bottom: 20px;
}

/* Input fields (login & signup forms) */
.form-box input {
    width: 80%;
    padding: 10px 5px 10px 5px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Buttons for forms and index_login choice page */
.form-box button,
.form-container .btn {
    display: inline-block;
    width: 140px; /* desktop width */
    margin: 10px; /* spacing between buttons */
    padding: 12px;
    background: #1e88e5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none; /* for <a> links styled as buttons */
    text-align: center;
}

/* Style links inside .form-box as buttons IT MADE ME ADD ALL THIS FOR THE SIGNUP-SUCCESS.HTML*/
.form-box .btn {
    display: inline-block;
    width: 140px; /* match other buttons */
    margin: 10px auto; /* center */
    padding: 12px;
    background: #1e88e5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none; /* remove underline */
    text-align: center;
}

.form-box .btn:hover {
    background: #1565c0;
}


.form-box button:hover,
.form-container .btn:hover {
    background: #1565c0;
}

/* Error message styling */
.error {
    color: red;
    text-align: center;
    margin-bottom: 15px;
}

/* Success message style for signup page */
.success-message {
    color: #2e7d32; /* dark green */
    background-color: #e8f5e9; /* light green background */
    border: 1px solid #a5d6a7; /* subtle border */
    padding: 10px 15px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}


/* ------------------------
   Responsive adjustments
------------------------ */
@media (max-width: 480px) {
    .form-box, .form-container {
        margin: 10px 10px;
        padding: 5px;
    }

    /* Input fields (login & signup forms) */
    .form-box input {
        width: 80%vh;
        /*padding: 10px;*/
        margin-bottom: 15px;
        border-radius: 6px;
        border: 1px solid #ccc;
}

    /* Stack buttons full width on mobile */
    .form-box button,
    .form-container {
        width: 100%;
        margin: 8px 0;
    }

    
}
