/* Page background */
body {
    background: #f4f6f9;
    font-family: Arial, Helvetica, sans-serif;
}

/* Center the form container */
.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Login box */
.form-section {
    background: white;
    padding: 40px 35px;
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    animation: fadeIn 0.5s ease-in-out;
}

/* Header */
.form-section h2 {
    text-align: center;
    margin-bottom: 10px;
}

.form-section p small {
    display: block;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Form spacing & layout */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

/* Labels */
.form-label {
    font-size: 14px;
    font-weight: 600;
}

/* Inputs */
.form-control {
    padding: 10px 12px;
    height: auto;
    border-radius: 6px !important;
    border: 1px solid #d6d6d6;
    font-size: 14px;
    transition: 0.2s ease-in-out;
}

.form-control:focus {
    border-color: #2d7ff9;
    box-shadow: 0 0 0 2px rgba(45,127,249,0.15);
}

/* Checkbox */
.form-check-input {
    cursor: pointer;
}

.form-check-label {
    font-size: 14px;
}

/* Submit button */
.btn-primary {
    padding: 12px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 8px;
    background: #2d7ff9;
    border: none;
    transition: 0.2s ease-in-out;
}

.btn-primary:hover {
    background: #1b5fc5;
}

/* Flash messages */
.alert {
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 14px;
}

.alert-success {
    background: #e6f8ee;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.alert-danger {
    background: #fde8e8;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.alert-warning {
    background: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
}

/* Fade-in effect */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
