/* ---------- SMOOTH SCROLL ---------- */
html {
    scroll-behavior: smooth;
}

/* ---------- CENTER THE LOGIN BOX ---------- */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px); /* adjust depending on your navbar height */
    background: #f5f7fa; /* light grey backdrop */
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.login-box {
    width: 100%;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}


/* ---------- HEADER ---------- */
.login-header h1 {
    text-align: center;
    margin-bottom: 0.4rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: #444;
}

.login-header p {
    text-align: center;
    margin: 0;
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* ---------- FORM ---------- */
.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: #555;
}

.form-input1 {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fafafa;
    transition: border 0.3s, background 0.3s;
}

.form-input1:focus {
    border-color: #888;
    background-color: #fff;
    outline: none;
}

/* ---------- BUTTON ---------- */
.btn-login {
    width: 100%;
    background: #555;
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-login:hover {
    background: #333;
    transform: translateY(-1px);
}

/* ---------- ERROR MESSAGE ---------- */
.error-message {
    background: #fbeaea;
    color: #b71c1c;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
    border: 1px solid #f5c2c2;
}

/* ---------- FOOTER ---------- */
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #555;
}

.login-footer a {
    color: #444;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.3s, border 0.3s;
}

.login-footer a:hover {
    color: #000;
    border-bottom: 1px solid #444;
}

/* ---------- ANIMATION ---------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
