/* Save as: auth_style.css */
body {
    font-family: Arial, sans-serif;
    /* NEW: Background image properties */
    background-image: url('bg.png'); /* <--- IMPORTANT: Replace 'your_image_name.jpg' with the actual filename */
    background-size: cover; /* This makes the image cover the entire background */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    background-attachment: fixed; /* Keeps the background fixed when scrolling (if content overflows) */
    
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white for readability */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Stronger shadow to stand out */
    text-align: center;
}

.auth-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50; /* Dark blue from dashboard */
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 30px;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-sizing: border-box; /* Important */
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: #3498db; /* Blue from dashboard */
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

/* Error handling */
.is-invalid {
    border-color: #e74c3c; /* Red */
}
.invalid-feedback {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
}
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: left;
}
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Button */
.btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #3498db; /* Blue */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #2980b9;
}

/* Footer link */
.auth-footer {
    margin-top: 25px;
    font-size: 0.95rem;
    color: #555;
}

.auth-footer a {
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
}
.auth-footer a:hover {
    text-decoration: underline;
}