/* Full-page background image */
body {
    background-image: url("../images/OBD.7ad12208ff80.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Centered login box */
.login-box {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    width: 350px;
    text-align: center;

    /* Move the box down */
    margin-top: 200px;   /* adjust this value as needed */
}

/* Title */
.login-box h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 28px;       /* bigger font size */
    font-family: 'Poppins', Arial, sans-serif;  /* nicer font */
    font-weight: 600;      /* make it slightly bold */
}

/* Inputs */
.login-box input {
    width: 80%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Button */
.login-box button {
    width: 80%;
    padding: 10px;
    background-color: #007bff;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.login-box button:hover {
    background-color: #0056b3;
}

.signup-link {
    padding: 10px;
    background-color: #007bff;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none; /* Removes default link underline */

    /* --- CRITICAL LAYOUT CHANGES FOR ANCHOR --- */
    /* Forces the link onto its own line and centers the block */
    display: block;

    /* New: Limits the width to enable centering */
    max-width: 120px;
    /* New: Centers the element horizontally (20px top margin, auto left/right) */
    margin: 20px auto 0 auto;

    /* Ensures the text is centered within the new block width */
    text-align: center;
    font-size: 0.8rem;
}

.signup-link:hover {
    background-color: #0056b3;
}

/* --- Auth action links container (Create account + Forgot password) --- */
.auth-actions {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;              /* spacing between buttons */
    align-items: center;    /* center the buttons */
}

/* Reusable "button-like link" style */
.auth-link {
    width: 50%;             /* match input/button width */
    padding: 10px;
    background-color: #007bff;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
    display: block;
}

.auth-link:hover {
    background-color: #0056b3;
}

/* Optional: make the forgot password link slightly less prominent */
.auth-link.secondary {
    background-color: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.auth-link.secondary:hover {
    background-color: rgba(0, 123, 255, 0.08);
}

/* Wizard progress + alerts */
.wizard-progress {
    margin: 8px 0 18px;
    font-size: 0.9rem;
    color: #555;
}

.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(255, 0, 0, 0.08);
    border: 1px solid rgba(255, 0, 0, 0.2);
    color: #a40000;
}

/* Better field layout (works with your existing .login-box styles) */
.form-row {
    margin-bottom: 12px;
    text-align: left;
}

.form-label {
    display: block;
    margin: 0 auto 6px;
    width: 80%;
    font-weight: 600;
    color: #333;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.9rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 80%;
    padding: 10px;
    margin: 0 auto;
    border: 1px solid #ccc;
    border-radius: 6px;
    display: block;
}

.field-error {
    width: 80%;
    margin: 6px auto 0;
    color: #a40000;
    font-size: 0.85rem;
}

/* Buttons row */
.wizard-buttons {
    width: 80%;
    margin: 12px auto 0;
    display: flex;
    gap: 10px;
}

.btn {
    border: none;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #e9ecef;
    color: #333;
}

.btn-secondary:hover {
    background-color: #dce1e6;
}

.auth-links {
    margin-top: 16px;
    font-size: 0.9rem;
}

.auth-links a {
    color: #007bff;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* =========================================================
   NAVBAR: make POST logout button look exactly like nav links
   ========================================================= */

/* Form should not introduce spacing/box model differences */
.nav-right .nav-logout-form {
    display: inline;
    margin: 0;
    padding: 0;
}

/* Reset the native <button> styling so it behaves like an <a> */
.nav-right .nav-logout-form button.nav-button {
    -webkit-appearance: none;
    appearance: none;

    background: transparent;
    border: none;
    box-shadow: none;

    padding: 0;
    margin: 0;

    font: inherit;
    color: inherit;
    line-height: inherit;
    text-align: inherit;

    border-radius: 0;
    cursor: pointer;
    display: inline; /* match anchor behavior */
}

/* Firefox adds inner padding unless removed */
.nav-right .nav-logout-form button.nav-button::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* Optional: keep focus visible but consistent (remove if you already style focus) */
.nav-right .nav-logout-form button.nav-button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}
