body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-image: url("background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* ← remove display:flex, justify-content, align-items, height */
}

/* Move centering to a wrapper instead */
.page-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 85px); /* ← full height minus navbar */
}

/* Small container card */
.form-container {
    background: #ffffff;
    padding: 30px 25px;     
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 400px;      /* fixed width */
    box-sizing: border-box;
    text-align: center;
}

*{
    text-decoration: none;
}

.navbar {
    
    background: #003E50;
    padding: 0 5%;
    width: 100%;
    box-sizing: border-box; /* ← prevents overflow */
    position: sticky;       /* ← stays at top when scrolling */
    top: 0;
    z-index: 100;           /* ← stays above content */
}

.navdiv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;           /* ← consistent navbar height */
}

.logo a {
    font-size: 18px;        /* ← bigger logo */
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
}

/* Title */
h2 {
    margin-bottom: 25px;
}

/* Labels and Inputs */
label {
    display: block;
    margin-top: 15px;
    text-align: left;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Login button */
button {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: #1c485b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
.reset-password {
    background: #1c485b;
}
button:hover {
    opacity: 0.9;
}

/* Error message */
#error {
    margin-top: 10px;
    color: red;
    font-size: 14px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.5);

    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 300px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}