/* ===================================================
   DER2Z — Auth pages (login / register / password reset)
   Fixes invisible white-on-white labels when the OS is in dark mode,
   and gives all panels a consistent polished card.
   =================================================== */

/* Page background — deep purple gradient */
.fi-simple-main-ctn,
.fi-simple-layout {
    background: linear-gradient(135deg, #1e1b4b 0%, #2e1065 60%, #3b0764 100%) !important;
    min-height: 100vh;
}

/* The card */
.fi-simple-main {
    background: #ffffff !important;
    border-radius: 18px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35) !important;
    border: none !important;
    padding: 32px !important;
}

/* Force ALL text inside the card to dark (fixes invisible labels in dark mode) */
.fi-simple-main,
.fi-simple-main * {
    color: #1f2937 !important;
}

/* Field labels */
.fi-simple-main .fi-fo-field-wrp-label,
.fi-simple-main label,
.fi-simple-main .fi-fo-field-wrp-label span {
    color: #374151 !important;
    font-weight: 600 !important;
}

/* Headings / subheadings */
.fi-simple-main h1,
.fi-simple-main h2,
.fi-simple-main .fi-simple-header-heading {
    color: #1e1b4b !important;
    font-weight: 800 !important;
}
.fi-simple-main .fi-simple-header-subheading {
    color: #6b7280 !important;
}

/* Inputs */
.fi-simple-main .fi-input,
.fi-simple-main input {
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 1px solid #d1d5db !important;
}
.fi-simple-main .fi-input-wrp {
    background: #ffffff !important;
}
.fi-simple-main input::placeholder {
    color: #9ca3af !important;
}

/* Links (back to login, register, etc.) */
.fi-simple-main a {
    color: #7c3aed !important;
    font-weight: 600 !important;
}

/* Primary button — keep the purple gradient with white text */
.fi-simple-main .fi-btn-color-primary,
.fi-simple-main button[type="submit"] {
    background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3) !important;
    border: none !important;
}
.fi-simple-main .fi-btn-color-primary *,
.fi-simple-main button[type="submit"] * {
    color: #ffffff !important;
}

/* Checkbox label (remember me) */
.fi-simple-main .fi-fo-checkbox label {
    color: #374151 !important;
}
