/**
 * MUI V2 Lost Password Stylesheet.
 * Scoped strictly under body.mui-v2-lost-password-template #mui-v2-lost-password
 * Forces the Lost Password Column to be bright/light and the Intro Column to be solid black.
 * Ignored/disabled dark mode styling for the lost password column completely.
 */

/* Force clean layout and disable header/footer spacing */
body.mui-v2-lost-password-template {
    background-color: #FFFFFF !important;
    color: #1D1D1F !important;
    padding: 0 !important;
    margin: 0 !important;
}

html.dark body.mui-v2-lost-password-template {
    background-color: #FFFFFF !important;
    color: #1D1D1F !important;
}

/* ==========================================
 * FORCE LIGHT THEME FOR THE ENTIRE LOST PASSWORD COLUMN (LEFT) IN DARK MODE
 * ========================================== */
html.dark body.mui-v2-lost-password-template #mui-v2-page-root,
html.dark body.mui-v2-lost-password-template #mui-v2-lost-password,
html.dark body.mui-v2-lost-password-template #mui-v2-page-content,
html.dark body.mui-v2-lost-password-template .lg\:col-span-7,
html.dark body.mui-v2-lost-password-template .bg-white {
    background-color: #FFFFFF !important;
    color: #1D1D1F !important;
}

html.dark body.mui-v2-lost-password-template h1,
html.dark body.mui-v2-lost-password-template h2:not(.lg\:col-span-5 *),
html.dark body.mui-v2-lost-password-template p:not(.lg\:col-span-5 *),
html.dark body.mui-v2-lost-password-template label:not(.lg\:col-span-5 *),
html.dark body.mui-v2-lost-password-template span:not(.lg\:col-span-5 *),
html.dark body.mui-v2-lost-password-template a:not(.lg\:col-span-5 *) {
    color: #1D1D1F !important;
}

html.dark body.mui-v2-lost-password-template p.text-muted,
html.dark body.mui-v2-lost-password-template .text-muted {
    color: #8E8E93 !important;
}

html.dark body.mui-v2-lost-password-template .text-xs.text-\[\#8E8E93\] a,
html.dark body.mui-v2-lost-password-template .text-xs a {
    color: #8E8E93 !important;
}

/* CSS Fallback to hide site header and footer on lost password page */
body.mui-v2-lost-password-template header,
body.mui-v2-lost-password-template footer,
body.mui-v2-lost-password-template #mui-v2-root,
body.mui-v2-lost-password-template #mui-v2-footer-root,
body.mui-v2-lost-password-template .site-header,
body.mui-v2-lost-password-template .site-footer,
body.mui-v2-lost-password-template .mui-v2-header-mount,
body.mui-v2-lost-password-template .mui-v2-footer-mount {
    display: none !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Rescue visibility for lost password template containers */
body.mui-v2-lost-password-template #mui-v2-page-root,
body.mui-v2-lost-password-template #mui-v2-lost-password,
body.mui-v2-lost-password-template #mui-v2-page-content,
body.mui-v2-lost-password-template section {
    display: block !important;
    visibility: visible !important;
}

body.mui-v2-lost-password-template #mui-v2-lost-password {
    isolation: isolate !important;
    font-family: BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    background-color: #FFFFFF !important;
}

body.mui-v2-lost-password-template #mui-v2-lost-password a {
    text-decoration: none !important;
    transition: color 180ms ease !important;
}

/* ==========================================
 * Defensive Column Ordering (Left: Form, Right: Intro)
 * ========================================== */
@media (min-width: 1024px) {
    body.mui-v2-lost-password-template #mui-v2-lost-password .grid {
        display: grid !important;
    }
    
    /* Make the form column (lg:col-span-7) appear first on the left */
    body.mui-v2-lost-password-template #mui-v2-lost-password .lg\:col-span-7 {
        order: 1 !important;
    }
    
    /* Make the intro stats banner column (lg:col-span-5) appear second on the right */
    body.mui-v2-lost-password-template #mui-v2-lost-password .lg\:col-span-5 {
        order: 2 !important;
    }
}

/* Hard rescue: stats grid inside right panel MUST stay 2-column. */
body.mui-v2-lost-password-template #mui-v2-lost-password .lg\:col-span-5 .grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 32px !important;
    min-height: unset !important;
}

body.mui-v2-lost-password-template #mui-v2-lost-password .lg\:col-span-5 .grid .col-span-2 {
    grid-column: span 2 / span 2 !important;
}

body.mui-v2-lost-password-template #mui-v2-lost-password .lg\:col-span-5 .grid .space-y-1 {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.mui-v2-lost-password-template #mui-v2-lost-password .lg\:col-span-5 .grid .space-y-1 p {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

body.mui-v2-lost-password-template #mui-v2-lost-password .lg\:col-span-5 .grid .space-y-1 p.text-3xl {
    font-size: 30px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    color: #FFFFFF !important;
}

body.mui-v2-lost-password-template #mui-v2-lost-password .lg\:col-span-5 .grid .space-y-1 p.text-\[10px\] {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: #A1A1A6 !important;
    margin-top: 4px !important;
}


/* ==========================================
 * User Registration Lost Password Form Styling (ALWAYS LIGHT)
 * ========================================== */

body.mui-v2-lost-password-template #mui-v2-lost-password .user-registration,
body.mui-v2-lost-password-template #mui-v2-lost-password .ur-frontend-form {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Hide plugin's redundant English header and description */
body.mui-v2-lost-password-template #mui-v2-lost-password .user-registration > h2,
body.mui-v2-lost-password-template #mui-v2-lost-password .user-registration > p,
body.mui-v2-lost-password-template #mui-v2-lost-password .ur-frontend-form > h2,
body.mui-v2-lost-password-template #mui-v2-lost-password .ur-frontend-form > p {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

body.mui-v2-lost-password-template #mui-v2-lost-password form.ur-frontend-form {
    width: 100% !important;
}

body.mui-v2-lost-password-template #mui-v2-lost-password .ur-form-grid,
body.mui-v2-lost-password-template #mui-v2-lost-password .ur-form-row {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
}

body.mui-v2-lost-password-template #mui-v2-lost-password .ur-field-wrapper {
    margin-bottom: 20px !important;
    display: block !important;
    width: 100% !important;
    float: none !important;
}

/* Labels - Force Mockup font sizes & uppercase */
body.mui-v2-lost-password-template #mui-v2-lost-password label,
body.mui-v2-lost-password-template #mui-v2-lost-password .ur-field-wrapper label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1D1D1F !important;
    margin-bottom: 8px !important;
    float: none !important;
    text-transform: uppercase !important;
}

/* Input fields - Force white background, light borders and 8px border-radius */
body.mui-v2-lost-password-template #mui-v2-lost-password .ur-field-wrapper input[type="text"],
body.mui-v2-lost-password-template #mui-v2-lost-password .ur-field-wrapper input[type="email"] {
    display: block !important;
    width: 100% !important;
    height: 48px !important;
    border-radius: 8px !important;
    border: 1px solid #D2D2D7 !important;
    background: #FFFFFF !important;
    color: #1D1D1F !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    outline: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    transition: all 180ms ease !important;
}

html.dark body.mui-v2-lost-password-template #mui-v2-lost-password .ur-field-wrapper input[type="text"],
html.dark body.mui-v2-lost-password-template #mui-v2-lost-password .ur-field-wrapper input[type="email"] {
    background: #FFFFFF !important;
    border-color: #D2D2D7 !important;
    color: #1D1D1F !important;
}

body.mui-v2-lost-password-template #mui-v2-lost-password .ur-field-wrapper input:focus,
html.dark body.mui-v2-lost-password-template #mui-v2-lost-password .ur-field-wrapper input:focus {
    border-color: #0267B2 !important;
    box-shadow: 0 0 0 4px rgba(2, 103, 178, 0.12) !important;
}

/* ==========================================
 * Submit Button Container & styling (FORCE 100% WIDTH PILL shape)
 * ========================================== */
body.mui-v2-lost-password-template #mui-v2-lost-password .ur-button-container,
body.mui-v2-lost-password-template #mui-v2-lost-password .ur-submit-button-container {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    float: none !important;
    clear: both !important;
    margin-top: 24px !important;
}

body.mui-v2-lost-password-template #mui-v2-lost-password button[type="submit"],
body.mui-v2-lost-password-template #mui-v2-lost-password input[type="submit"].ur-submit-button,
body.mui-v2-lost-password-template #mui-v2-lost-password .ur-button,
body.mui-v2-lost-password-template #mui-v2-lost-password .ur-submit-button,
html.dark body.mui-v2-lost-password-template #mui-v2-lost-password button[type="submit"],
html.dark body.mui-v2-lost-password-template #mui-v2-lost-password input[type="submit"].ur-submit-button,
html.dark body.mui-v2-lost-password-template #mui-v2-lost-password .ur-submit-button {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 9999px !important;
    background: #0267B2 !important; /* DevOps VN Brand Blue */
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(2, 103, 178, 0.15) !important;
    transition: all 180ms ease !important;
    box-sizing: border-box !important;
    float: none !important;
    text-shadow: none !important;
}

body.mui-v2-lost-password-template #mui-v2-lost-password button[type="submit"]:hover,
body.mui-v2-lost-password-template #mui-v2-lost-password input[type="submit"].ur-submit-button:hover,
body.mui-v2-lost-password-template #mui-v2-lost-password .ur-submit-button:hover,
html.dark body.mui-v2-lost-password-template #mui-v2-lost-password button[type="submit"]:hover,
html.dark body.mui-v2-lost-password-template #mui-v2-lost-password input[type="submit"].ur-submit-button:hover,
html.dark body.mui-v2-lost-password-template #mui-v2-lost-password .ur-submit-button:hover {
    background: #2d99e4 !important;
    box-shadow: 0 6px 16px rgba(45, 153, 228, 0.25) !important;
    transform: translateY(-1px) !important;
}

/* User Registration Message/Notice Styling */
body.mui-v2-lost-password-template #mui-v2-lost-password .user-registration-message,
body.mui-v2-lost-password-template #mui-v2-lost-password .ur-message {
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-bottom: 20px !important;
}

body.mui-v2-lost-password-template #mui-v2-lost-password .user-registration-message.success,
body.mui-v2-lost-password-template #mui-v2-lost-password .ur-message.success {
    background-color: #E8F5E9 !important;
    border: 1px solid #C8E6C9 !important;
    color: #2E7D32 !important;
}

body.mui-v2-lost-password-template #mui-v2-lost-password .user-registration-message.error,
body.mui-v2-lost-password-template #mui-v2-lost-password .ur-message.error,
body.mui-v2-lost-password-template #mui-v2-lost-password .ur-error {
    background-color: #FFEBEE !important;
    border: 1px solid #FFCDD2 !important;
    color: #C62828 !important;
}

/* Sub-footer terms & privacy links styling */
body.mui-v2-lost-password-template #mui-v2-lost-password .text-xs.text-\[\#8E8E93\] a,
body.mui-v2-lost-password-template #mui-v2-lost-password .text-xs a,
html.dark body.mui-v2-lost-password-template #mui-v2-lost-password .text-xs.text-\[\#8E8E93\] a,
html.dark body.mui-v2-lost-password-template #mui-v2-lost-password .text-xs a {
    color: #8E8E93 !important;
}

body.mui-v2-lost-password-template #mui-v2-lost-password .text-xs.text-\[\#8E8E93\] a:hover,
body.mui-v2-lost-password-template #mui-v2-lost-password .text-xs a:hover {
    color: #555555 !important;
}

/* ==========================================
 * Right Banner Column overrides (ALWAYS SOLID BLACK)
 * ========================================== */

body.mui-v2-lost-password-template #mui-v2-lost-password .lg\:col-span-5 {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #FFFFFF !important;
}

body.mui-v2-lost-password-template #mui-v2-lost-password .lg\:col-span-5 h2,
body.mui-v2-lost-password-template #mui-v2-lost-password .lg\:col-span-5 p,
body.mui-v2-lost-password-template #mui-v2-lost-password .lg\:col-span-5 div {
    color: #FFFFFF !important;
}

body.mui-v2-lost-password-template #mui-v2-lost-password .lg\:col-span-5 p.text-\[10px\] {
    color: #A1A1A6 !important;
}
