/* DMN Login Page Custom Styles */

/* RTL support */
[dir="rtl"] .fi-simple-page,
[dir="rtl"] .fi-fo-field-wrp,
[dir="rtl"] .fi-input {
    direction: rtl;
    text-align: right;
}
[dir="rtl"] .dmn-lang-switcher { left: 1.25rem; right: auto; }

/* Full-page background — no blur on the image itself */
html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
}
body {
    background: #0a0804 url('/backgroun.png') center center / cover no-repeat fixed !important;
}
.fi-simple-layout {
    background: transparent !important;
    min-height: 100vh;
}

/* Dark overlay — no backdrop-filter so image stays sharp */
.fi-simple-layout::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    z-index: 0;
}

.fi-simple-main {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

/* No scroll — everything fits in viewport */
html, body {
    overflow: hidden !important;
    height: 100% !important;
}
.fi-simple-layout {
    height: 100vh !important;
    overflow: hidden !important;
}

/* Center card vertically with room for slogan and footer */
.fi-simple-main-ctn {
    align-items: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 0.75rem !important;
}

/* Strip white background, shadow, and width constraint from Filament's wrapper */
main.fi-simple-main,
.fi-simple-main {
    background: transparent !important;
    background-color: transparent !important;
    --tw-bg-opacity: 0 !important;
    box-shadow: none !important;
    --tw-shadow: none !important;
    --tw-ring-shadow: none !important;
    border: none !important;
    max-width: 640px !important;
    width: 100% !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Kill Tailwind's max-w-lg directly */
.max-w-lg.fi-simple-main,
.fi-simple-main.max-w-lg {
    max-width: 640px !important;
}

/* Login card */
.fi-simple-page {
    background: rgba(10, 7, 2, 0.88) !important;
    border: 1px solid rgba(212, 175, 55, 0.32) !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 0 80px rgba(212, 175, 55, 0.12), 0 30px 60px rgba(0,0,0,0.7) !important;
    backdrop-filter: blur(8px) !important;
    padding: 3rem 4rem !important;
    width: 100% !important;
}

/* Make the inner section fill full width */
.fi-simple-page > section {
    width: 100% !important;
}

/* Slogan below card */
.dmn-slogan {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 0 1rem;
    max-width: 640px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.dmn-slogan-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.3), transparent);
}
.dmn-slogan-text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.72);
    white-space: nowrap;
    letter-spacing: 0.04em;
    font-style: italic;
}

/* Footer */
.dmn-footer {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.25);
    text-align: center;
    letter-spacing: 0.06em;
}
.dmn-footer a {
    color: rgba(212,175,55,0.5) !important;
    text-decoration: none;
    transition: color 0.2s;
}
.dmn-footer a:hover {
    color: #d4af37 !important;
}

/* Brand block */
.dmn-brand {
    text-align: center;
    margin-bottom: 0.5rem;
}
.dmn-logo {
    height: 54px;
    width: auto;
    display: block;
    margin: 0 auto 0.75rem;
    filter: drop-shadow(0 0 10px rgba(212,175,55,0.45));
}
.dmn-brand-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 0.06em;
    text-shadow: 0 0 24px rgba(212,175,55,0.3);
}
.dmn-brand-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}
.dmn-divider {
    width: 60px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 1rem auto 0;
}

/* Hide Filament's default heading/logo since we handle it in slot */
.fi-simple-page > .fi-logo,
.fi-simple-page > h1.fi-heading {
    display: none !important;
}

/* Form labels — target the exact span Filament renders inside each label */
.fi-fo-field-wrp-label span,
.fi-fo-field-wrp-label > span,
label.fi-fo-field-wrp-label span {
    color: #ffffff !important;
}
/* Also catch any direct text-gray-* overrides Filament uses */
.fi-simple-page .text-gray-950,
.fi-simple-page .text-gray-700,
.fi-simple-page .text-gray-600 {
    color: #ffffff !important;
}

/* Inputs */
.fi-input-wrp {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(212, 175, 55, 0.25) !important;
    border-radius: 0.625rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.fi-input-wrp:focus-within {
    border-color: rgba(212, 175, 55, 0.75) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1) !important;
}
.fi-input {
    background: transparent !important;
    color: #ffffff !important;
    font-size: 0.9rem !important;
}
.fi-input::placeholder {
    color: rgba(255, 255, 255, 0.25) !important;
}

/* Remember me checkbox */
.fi-checkbox-input {
    accent-color: #d4af37;
}
.fi-fo-checkbox label span {
    color: rgba(255,255,255,0.6) !important;
    font-size: 0.82rem !important;
}

/* Submit button */
.fi-btn.fi-btn-primary {
    background: linear-gradient(135deg, #b8922a 0%, #d4af37 50%, #c9a227 100%) !important;
    border: none !important;
    color: #1a1000 !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    border-radius: 0.625rem !important;
    padding: 0.7rem 1.5rem !important;
    font-size: 0.92rem !important;
    box-shadow: 0 4px 24px rgba(212, 175, 55, 0.4) !important;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s !important;
    width: 100%;
}
.fi-btn.fi-btn-primary:hover {
    opacity: 0.92 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.55) !important;
}

/* Validation errors */
.fi-fo-field-wrp-error-message {
    color: #fca5a5 !important;
    font-size: 0.78rem !important;
}

/* Forgot password link */
.fi-simple-page a {
    color: rgba(212, 175, 55, 0.75) !important;
    font-size: 0.8rem !important;
    transition: color 0.2s;
}
.fi-simple-page a:hover {
    color: #d4af37 !important;
}

/* Section header (if any) */
.fi-section-header-heading {
    color: rgba(255,255,255,0.85) !important;
}
