:root {
    --brand-primary: #153e9a; /* A primary brand blue */
    --brand-secondary: #2196f3; /* A secondary gray */
    --brand-accent: #28a745;  /* An accent/success green */
    --text-color: #212529;   /* Main body text color */
    --background-color: rgb(21 62 154 / 20%); /* Main background color */
}

/* 1. Global Page Styles (Scoped to this module) */
.auth-only-page {
    font-family: Arial, sans-serif;
    /* Remove background-color: #f0f2f5 !important; */
    background-color: #e6e6e6; /* Fallback color if image fails */
    background-image: url('../img/f14l5a07udceb9n71t52_web_light_2.svg'); /* Path to your SVG */
    background-repeat: no-repeat;
    background-position: center bottom; /* Position at the bottom center */
    background-size: cover; /* Cover the entire background, stretching if needed */
    display: flex;
    flex-direction: column; /* Allows content and footer to stack */
    justify-content: space-between; /* Pushes content to top, footer to bottom */
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/* 2. Container (The Card) Styles (Scoped) - Make padding slightly smaller */
.auth-only-page .auth-container {
    background-color: #fff;
    padding: 25px 35px; /* Slightly reduced padding */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    margin-top: 50px;
    margin-bottom: 20px;
}

/* 3. Typography and Heading Styles (Scoped) */
.auth-only-page h1 {
    text-align: center;
    color: #1f2937;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* 4. Form Controls (Scoped) */
.auth-only-page form {
    display: flex;
    flex-direction: column;
}

.auth-only-page label {
    margin-top: 10px;
    margin-bottom: 5px;
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-only-page input[type="email"],
.auth-only-page input[type="password"] {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.auth-only-page input[type="email"]:focus,
.auth-only-page input[type="password"]:focus {
    border-color: #3b82f6; 
    outline: none;
    box-shadow: 0 0 0 1px #3b82f6;
}

/* 5. Button Styles (Scoped) */
.auth-only-page button[type="submit"] {
    margin-top: 20px;
    padding: 10px 15px;
    background-color: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 600;
}

.auth-only-page button[type="submit"]:hover {
    background-color: var(--brand-secondary);
}

/* 6. Link Styles (Scoped) */
.auth-only-page .form-link {
    text-align: center;
    margin-top: 20px;
}

.auth-only-page .form-link a {
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    font-size: 0.9rem;
}

/* 7. NEW: Footer Styles */
.auth-only-page .auth-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: #606060;
    margin-top: auto; /* Pushes the footer to the bottom */
}

.auth-only-page .auth-footer a {
    color: var(--brand-primary); /* var(--brand-primary) */
    text-decoration: none;
    margin: 0 8px;
}

.auth-only-page .auth-footer a:hover {
    text-decoration: underline;
}

.auth-only-page .auth-footer p {
    margin-top: 10px;
    font-size: 0.75rem;
    color: #888;
}

/* Add this section for the logo container */
.auth-only-page .login-logo {
    text-align: center !important; 
    margin-bottom: 10px !important; 
}

.auth-only-page .login-logo img {
    /* These rules ensure the image is visible and centered */
    display: block !important;
    max-width: 150px !important; 
    height: auto !important;
    margin: 0 auto !important; 
    opacity: 1 !important; 
}

/* 8. NEW: Email Display Styling (The Microsoft Look) */
.auth-only-page .email-display
 {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #848181;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 6px 15px;
    display: inline-block;
    /* margin: 0 auto 20px auto; */
}

.auth-only-page .email-display-wrapper {
    /* Set this to center the inline-block child element */
    text-align: center;
    margin-bottom: 20px; /* Adjust this margin if needed for spacing below the pill */
}

/* 
* Credentials Toggle (Show/Hide Password) Starts Here

*/

/* 1. Password Input Padding Fix (CRITICAL) */
#password-field {
    padding-right: 3.5rem !important;
}

/* 2. Toggle UI Fix: Make it transparent and borderless inside the field */
.input-group-text.toggle-password {
    background-color: transparent; 
    border: none;
    cursor: pointer;
    display: flex; 
    align-items: center;
    justify-content: center;
    padding-right: 1rem; 
}

/* 3. Style the Icon itself */
.toggle-password i {
    color: #999999; /* Light gray color for the icon, similar to the reference */
    font-size: 1.1em;
}

/* 4. Error Message Fix (To maintain general design) */
.invalid-feedback.d-block {
    margin-top: -0.5rem; 
    margin-bottom: 0.5rem;
    display: block !important;
}

/* 
* Credentials Toggle (Show/Hide Password) Ends Here

*/