/* ---  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: #0d6efd; /* Highlight with Bootstrap's primary blue color */
    box-shadow: 0 0 8px rgba(13, 110, 253, 0.2);
}

/* --- 5. The Submit Button --- */
.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #0d6efd; /* Bootstrap 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: #0b5ed7; /* 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: #0d6efd;
    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: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 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 {
    /* We keep the body's background color as a fallback */
    background-color: #212529;
    /* Or your preferred dark color */
}

body::before {
    /* This creates the special background layer */
    content: '';
    position: fixed;
    /* This makes it stay still during scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* This pushes the layer behind your content */

    /* The path to your repeating pattern image */
    background-image: url("../images/thnback1.f45de8bb3eea.png");

    /* This is what makes the image faint. Adjust the number to your liking.
       0.05 is very faint, 0.2 is more visible. */
    opacity: 0.08;

    /* This angles the entire pattern. You can change -25deg to any angle. */
    transform: rotate(-25deg) scale(1.4);
}