/* ---  1. General Body & Layout --- */
/* This centers the form on pages that use it, like login/register */
.content-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    /* Adjust as needed */
    padding: 20px 0;
}

/* --- 2. The Form Container --- */
/* This is the white box that holds the form */
.form-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    /* A soft, modern shadow */
    width: 100%;
    max-width: 450px;
    /* Max width for the form */
    box-sizing: border-box;
}

/* --- 3. Form Headings and Text --- */
.form-container h2 {
    font-family: 'Poppins', sans-serif;
    color: #2a2a2a;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
    /* Bolder font for the heading */
    text-align: center;
}

.form-container p {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
    text-align: center;
}

/* --- 4. Input Fields & Labels --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

/* This targets the input fields Django generates */
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    /* Important for padding and width to work together */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    /* Smooth transition for focus effect */
}

/* Style for when the user clicks into an input field */
.form-group input:focus {
    outline: none;
    /* Remove default blue outline */
    border-color: #092565;
    /* Highlight with new primary blue color */
    box-shadow: 0 0 8px rgba(9, 37, 101, 0.2);
}

/* --- 5. The Submit Button --- */
.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #092565;
    /* New primary blue */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    /* Smooth transition for hover effect */
}

.submit-btn:hover {
    background-color: #061a48;
    /* A darker shade on hover */
    transform: translateY(-2px);
    /* Slight lift on hover */
}

/* --- 6. Form Footer Links --- */
.form-footer {
    text-align: center;
    margin-top: 25px;
}

.form-footer p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.form-footer a {
    color: #092565;
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* =================================================================== */
/* FORM FIELD ALIGNMENT FIX
/* =================================================================== */
/* This targets any text, email, or password input inside our form
   and forces it to have the correct, full-width Bootstrap style. */

.form-container .mb-3 input[type="text"],
.form-container .mb-3 input[type="email"],
.form-container .mb-3 input[type="password"] {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* This ensures the focus highlight works correctly too */
.form-container .mb-3 input:focus {
    border-color: #1342a8;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(9, 37, 101, 0.25);
}

/*
  Force verification modal to the front
  --------------------------------------------------
  This rule ensures the modal's stacking order is higher
  than the dark backdrop, making its buttons clickable.
*/
#verificationWarningModal {
    z-index: 9999 !important;
}

.hover-lift:hover {
    transform: translateY(-5px);
    transition: transform 0.2s ease-in-out;
}

body {
    /* Dark background color */
    background-color: #212529;

    /* Faint, non-scrolling background image, applied safely */
    background-image: linear-gradient(rgba(33, 37, 41, 0.92), rgba(33, 37, 41, 0.92)), url("../images/thnback1.f45de8bb3eea.png");
    background-attachment: fixed;
    /* This prevents the image from scrolling with the page */
    background-position: center;
    background-repeat: repeat;
    background-size: auto;
}

/* =================================================================== */
/* SIDEBAR FILTER FORM STYLING (Corrected)
/* =================================================================== */
/* Hides the labels for the filter dropdowns in the left sidebar */
.col-lg-2 .form-label {
    display: none;
}

/* Limits the width of the dropdowns in the sidebar */
.col-lg-2 select {
    max-width: 20ch;
}
/* =================================================================== */
/* CUSTOM BUTTON STYLES
/* =================================================================== */
/* Custom button for 'View Details' */
.btn-view-details {
    background-color: #C98F35 !important;
    border-color: #C98F35 !important;
    color: #fff !important;
}

.btn-view-details:hover {
    background-color: #b07c2d !important;
    /* A darker shade */
    border-color: #b07c2d !important;
    color: #fff !important;
}