﻿body {
    font-family: Arial, sans-serif;
    background: url("wsbg4.png") repeat center top; /* ✅ scrolls with page */
    background-size: cover; /* makes it cover full width */
    margin: 0;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: rgba(255, 255, 255, 0.8);
    position: absolute;
    left: 0;
    right: 0; /* ✅ makes it span full width without overflow */
    top: 0;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    margin-right: 10px;
}

.title h1 {
    margin: 0;
    font-size: 20px;
    color: #002366;
}

.title h2 {
    margin: 0;
    font-size: 14px;
    font-weight: normal;
    color: #002366;
}

.title p {
    margin: 0;
    font-size: 12px;
    color: red;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px; /* even spacing */
    margin: 0;
    padding: 0;
    align-items: center; /* aligns menu vertically with logo */
}

nav li {
    display: flex;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

    nav a:hover {
        color: #007BFF;
    }

.login-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 300px;
    margin: 150px auto; /* ✅ centers horizontally and pushes down from top */
}

    .login-container h2 {
        text-align: center;
        margin-bottom: 20px;
        color: #333;
    }

    .login-container input {
        width: 100%;
        padding: 10px;
        margin-bottom: 5px;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-sizing: border-box;
    }

.error {
    color: red;
    font-size: 12px;
    min-height: 16px;
    margin-bottom: 10px;
}

.forgot-password {
    display: block;
    text-align: right;
    font-size: 12px;
    margin-bottom: 15px;
    text-decoration: none;
    color: #4CAF50;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

.login-container button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

    .login-container button:hover {
        opacity: 0.9;
    }

    .login-container button[type="submit"] {
        background-color: #4CAF50;
        color: white;
    }

.register-btn {
    background-color: #2196F3;
    color: white;
}
