* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, serif;
    background: linear-gradient(135deg, #1B3C53 0%, #234C6A 100%);
    min-height: 100vh;
}

/* Navbar styling */
.navbar {
    background-color: #333;
    overflow: hidden;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.navbar li {
    margin: 0;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: background-color 0.3s ease;
}

.navbar a:hover {
    background-color: #575757;
}

/* Main content */
main {
    max-width: 450px;
    margin: 80px auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main h2 {
    text-align: center;
    color: #234C6A;
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Form styling */
#loginForm {
    display: flex;
    flex-direction: column;
}

#loginForm label {
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    margin-top: 10px;
}

#loginForm input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    margin-bottom: 10px;
    font-family: Georgia, serif;
}

#loginForm input:focus {
    outline: none;
    border-color: #456882;
    background: white;
    box-shadow: 0 0 0 3px rgba(69, 104, 130, 0.1);
}

#loginForm input::placeholder {
    color: #999;
}

/* Submit button */
#loginForm button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #234C6A 0%, #456882 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(35, 76, 106, 0.4);
    margin-top: 20px;
}

#loginForm button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 76, 106, 0.6);
}

#loginForm button[type="submit"]:active {
    transform: translateY(0);
}

/* Login message */
#loginMessage {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
}

#loginMessage:not(:empty) {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Success message variant (add this class via JavaScript when login is successful) */
#loginMessage.success {
    background-color: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

/* Register link */
#noAccount {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 14px;
}

#noAccount a {
    color: #456882;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

#noAccount a:hover {
    color: #234C6A;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    main {
        margin: 40px 20px;
        padding: 30px 20px;
    }
    
    main h2 {
        font-size: 24px;
    }
}
