* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:sans-serif;
}

/*container*/
.container {
    width: 100%;
    max-width: 450px;
    padding: 20px;

    text-align: center;
    margin: 0 auto;
}

/* ---------- Body & Background ---------- */
body {
    background: rgba(255, 255, 255, 0.986); 
    display: flex;
    justify-content: center;

    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    min-height: 100vh;
    justify-content: flex-start;
}


/*form Box*/
.form-box {
    width: 100%;
    background: #ffffffff; /* white box */
    color: #1a582f; /* dark blue text */
    padding: 30px;
    border-radius: 10px;
    
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: none; /*hidden by default */
    margin-bottom: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.form-box.active {
    display: block;
}

/*headings*/
.form-box h2 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #57b8f8;
}

/*input fields*/
input, select {
    width: 100%;
    padding: 12px 15px;

    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #3ca4ce;
    font-size: 16px;
    outline: none;
    background: #f9f9f9;
    color: #3ca4ce;/* dark blue text */
}

input::placeholder {
    color: #999;
}

/*Buttons*/
button[name="login"],
button[name="register"] {
    width: 100%;
    padding: 12px;
    background: #3190b6;/* dark blue*/

    border: none;
    border-radius: 6px;
    color: #fffffff3;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

button[name="login"]:hover,
button[name="register"]:hover {
    background: #1d7597; /* darker blue on hover */
}

.form-box p a {
    color: #3ca4ce;
    font-weight: 600;
    text-decoration: underline;
}

.form-box p {
    color: #1d7597; /*visible dark blue text */
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
}

.form-box p a:hover {
    color: #257a9c;
}

.error-message {
    color: #ff4c4c;
    margin-bottom: 15px;
    font-weight: 600;/*error message*/
    text-align: center;
}

.login-header {
    width: 100%;
    background: #ffffff;
    padding: 15px 0;
    display: flex;

    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    justify-content: center;/*login header*/

    margin-bottom: 100px;
}

.login-header img {
    height: 90px;/*login header img*/
    display: block;

    width: auto;
}


@media (max-width: 480px) {
    .form-box {
        padding: 20px;/* Responsive*/
    }
    .form-box h2 {
        font-size: 24px;
    }
    
    input, select {
        font-size: 14px;
    }
    
    button {
        font-size: 14px;
        padding: 10px;
    }
}
