body, html {
    height: 100%;
    margin: 0;
    padding: 0;
}

.signup-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none; /* Let your background image show through */
}

.signup-card {
    background: #111;
    color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    border: 4px solid #fff;
    width: 420px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.signup-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.signup-form label {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.signup-form input {
    width: 100%; /* Now safely fills the card space perfectly */
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 1.1rem;
    display: block;
    box-sizing: border-box; /* Ensures padding does not break full width sizing */
}

.signup-form input#confirm_password {
    margin-bottom: 2.2rem; /* Adds identical spacing structure below confirm block */
}

.signup-btn {
    background: #b6e2c6;
    color: #222;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Luckiest Guy', cursive;
    margin-top: 0.5rem;
    width: 100%;
}

.signup-btn:hover {
    background: #ffe066;
}

/* ==========================================================================
   DYNAMIC FLASH NOTIFICATION SYSTEM STYLES (Positioned Below Navbar)
   ========================================================================== */
.flash-alert {
    position: absolute; 
    /* Offset it by your navbar's height so it slides down directly beneath it */
    top: 60px; /* Adjust this value if your navbar is slightly thicker/thinner (e.g., 60px or 70px) */
    left: 0;
    width: 100%;
    padding: 1.25rem;
    text-align: center;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    box-sizing: border-box;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    z-index: 9998; /* Kept right beneath the navbar layer (assuming navbar is 9999) */
    transition: opacity 0.5s ease, transform 0.5s ease;
    
    -webkit-animation: slideDownAlert 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            animation: slideDownAlert 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flash-success {
    background-color: #2bda7e;
    color: #111;
    border-bottom: 3px solid #1e9e5a;
}

.flash-error {
    background-color: #ff5555;
    color: #fff;
    border-bottom: 3px solid #cc3333;
}

@-webkit-keyframes slideDownAlert {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideDownAlert {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}