/* Reset & Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e0f0ff, #cce0f5);
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* Login Container */
.login-container, .login-box {
    background-color: #ffffff;
    max-width: 400px;
    width: 90%;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease;
}

/* Heading */
h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 26px;
    color: #003366;
}

/* Form Inputs */
form input[type="text"],
form input[type="email"],
form input[type="password"],
form button {
    width: 100%;
    padding: 14px 15px;
    margin: 12px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Input Focus Effect */
form input:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.3);
}

/* Submit Button */
form button,
form input[type="submit"] {
    background: #0056b3;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover,
form input[type="submit"]:hover {
    background: #003f7f;
}

/* Error Message */
.error {
    color: #d9534f;
    background: #fcebea;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

.password-container {
    position: relative;
    margin: 12px 0; /* Matches other input margins */
}


.password-container input {
    width: 100%;
    padding-right: 40px; /* space for the eye icon */
    box-sizing: border-box;
}


.password-container .eye {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #777;
    user-select: none;
    padding: 2px;
}

.password-container .eye:hover {
    color: #000;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .login-container, .login-box {
        padding: 30px 25px;
    }

    h2 {
        font-size: 24px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .login-container, .login-box {
        padding: 25px 20px;
    }

    h2 {
        font-size: 22px;
    }

    form input,
    form button {
        font-size: 14px;
        padding: 12px;
    }
}
