













/* ===== Login Form Container ===== */
.form-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* ===== Title ===== */
.form-container h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
    color: #007bff;
}

/* ===== Divider ===== */
.form-container hr {
    border: none;
    height: 2px;
    background: #007bff;
    width: 60px;
    margin: 10px auto 25px;
    border-radius: 4px;
}

/* ===== Error Message ===== */
.message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ===== Form Group ===== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
    color: #444;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    font-size: 15px;

    transition: 0.3s ease;
}

.form-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.25);
}

/* ===== Submit Button ===== */
.logbtn {
    /* --- Sizing & Spacing --- */
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 10px; /* Adds a little space above the button */

    /* --- Appearance --- */
    background-color: #007bff; /* Primary blue */
    color: white;
    border: none;
    border-radius: 5px; /* Rounded corners */
    
    /* --- Interactivity --- */
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
}

.logbtn:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.logbtn:active {
    background-color: #004a99; /* Even darker blue when clicked */
    transform: scale(0.99); /* Slight press-down effect */
}

.logbtn:focus {
    /* Accessibility outline for keyboard navigation */
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.35);
}










/* ===== Register Link ===== */
.register-link {
    font-size: 14px;
    color: #555;
}

.register-link a {
    color: #007bff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.register-link a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .form-container {
        margin: 30px 15px;
        padding: 20px;
    }

    .form-container h2 {
        font-size: 20px;
    }

    .btn {
        font-size: 15px;
    }
}
