/* ...existing code... */
body {
    min-height: 100vh;
    background-color: #f4f7f6;
}

/* Login/Register styling */
.credentials-container {
    max-width: 31.25rem; /* 500px */
    margin-top: 3.125rem;
    background-color: #fff;
    border-radius: 0.5rem; /* 8px */
    box-shadow: 0 0.125rem 0.625rem rgba(0,0,0,0.1); /* 2px 10px */

    padding: 1rem 1.5rem; /* 30px 40px */
    justify-self: center;
    
    font-family: var(--font-helvetica);
}

.hidden {
    display: none !important;
}

.register-form-section.hidden {
    display: none !important; /* Use !important to override default styles if necessary */
}

.credentials-title {
    margin-bottom: 1.875rem;
    
    font-size: 2em;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.credentials-subtitle {
    color: #555;
    margin-top: 1.5625rem;      /* 25px */
    margin-bottom: 0.9375rem;   /* 15px */
    font-size: 1.2em;
    border-bottom: 0.0625rem solid #eee; /* 1px */
    padding-bottom: 0.3125rem;  /* 5px */
}

#forgotPasswordMessage,
#resetPasswordMessage,
#registerPasswordMessage,
.register-messages {
    display: none;
    margin-bottom: 1.875rem;
    border-radius: 0.25rem;

    padding: 0.625rem;
}

#forgotPasswordMessage.success,
#resetPasswordMessage.success,
#registerPasswordMessage.success,
.register-messages.success {
    display: block;
    background-color: #e8f5e9;

    color: #4CAF50;
}

#forgotPasswordMessage.error,
#resetPasswordMessage.error
#registerPasswordMessage.error,
.register-messages.error {
    display: block;
    background-color: #ffecec;

    color: #f44336;
}

.credentials-form-group {
    margin-bottom: 20px;
}

.credentials-form-group label {
    display: block;
    margin-bottom: 0.3125rem;
    color: #555;
    font-weight: 600;
}

.credentials-form-group input[type="email"],
.credentials-form-group input[type="password"],
.credentials-form-group input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 0.25rem;

    padding: 0.625rem;
    
    font-size: 1rem;
}

.credentials-btn-primary {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.25rem;
}

.credentials-btn-primary:hover {
    background-color: #3367d6;
}

.google-signin-container {
    display: flex;
    justify-content: center; /* Center the button */
    margin-top: 0.9375rem;    /* 15px */
    margin-bottom: 3.125rem;  /* 50px */
}

.login-or-separator {
    text-align: center;
    margin: 0.9375rem 0;
    font-weight: bold;
    color: #555;
}

.resend-code-btn {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    padding: 0.3125rem 0; /* 5px 0 */
    font-size: 0.9em;
    margin-top: 0.3125rem; /* 5px */
    width: auto; /* Override button width */
}

.resend-code-btn:hover {
    color: #0056b3;
}

.register-link,
.forgot-password-link,
.back-to-login-link
{
    text-align: center;
    margin-top: 1.25rem;
}

.register-link a,
.forgot-password-link a
.back-to-login-link a
{
    color: #4285f4;
    text-decoration: underline;
}

.register-link a:visited,
.forgot-password-link a:visited,
.back-to-login-link a:visited
{
    color: #4285f4;
}

.flash-messages {
    background-color: #ffecec;
    padding: 0.625rem;
    border-radius: 0.25rem;
    margin-bottom: 1.25rem;
    border-left: 0.25rem solid #f44336;
}

.flash-message {
    color: #f44336;
    margin: 0.3125rem 0;
}