/* Shared branded shell for the Welcome and Login screens — plain CSS, no build step required. */

.maxerp-auth-body {
    /* Fixed + full-viewport so this breaks out of Filament's own narrow auth-page container
       (its default layout assumes a small centered login box, with max-width constraints on
       ancestor elements we don't control from here) rather than being squeezed inside it. */
    position: fixed;
    inset: 0;
    z-index: 40;
    margin: 0;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #6a5cf0 0%, #4f6bf6 55%, #2e6bf5 100%);
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.maxerp-auth-card {
    width: 100%;
    max-width: 980px;
    min-height: 560px;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 30px 70px -20px rgba(20, 20, 90, 0.45);
    display: flex;
    overflow: hidden;
}

.maxerp-auth-left,
.maxerp-auth-right {
    flex: 1 1 50%;
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
}

.maxerp-auth-left {
    position: relative;
    background: linear-gradient(165deg, #4a5cd9 0%, #38399e 55%, #2c2f80 100%);
    color: #ffffff;
    overflow: hidden;
}

.maxerp-auth-left::after {
    content: '';
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -18%;
    height: 220px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.maxerp-brand-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
    flex-shrink: 0;
}

.maxerp-brand-mark-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.maxerp-brand-mark-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.maxerp-auth-left-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.maxerp-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
}

.maxerp-heading {
    font-size: 42px;
    line-height: 1.08;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.maxerp-heading--sm {
    font-size: 32px;
}

.maxerp-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 32px;
}

.maxerp-btn-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.maxerp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 14px 30px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.maxerp-btn:hover {
    opacity: 0.92;
}

.maxerp-btn-primary {
    background: #0f1a4d;
    color: #ffffff;
}

.maxerp-auth-right {
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f8f9fc;
    gap: 18px;
}

.maxerp-logo-mark {
    width: 118px;
    height: 118px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px -10px rgba(30, 40, 120, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.maxerp-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
}

.maxerp-right-heading {
    font-size: 26px;
    font-weight: 800;
    color: #16193d;
    line-height: 1.15;
    margin: 4px 0 0;
}

.maxerp-right-tagline {
    font-size: 14px;
    color: #6b7280;
    max-width: 300px;
    margin: 0;
}

.maxerp-contact-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    align-items: center;
}

.maxerp-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    box-shadow: 0 6px 16px -6px rgba(30, 40, 120, 0.18);
}

.maxerp-contact-pill a {
    color: #3f6ffa;
    text-decoration: none;
    font-weight: 700;
}

/* --- Login form field restyling (targets Filament's rendered form inside .maxerp-form) --- */

.maxerp-form .fi-fo-field-wrp-label {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
}

.maxerp-form .fi-input-wrp {
    background: #ffffff !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: none !important;
    padding: 2px 6px;
}

.maxerp-form input.fi-input {
    background: transparent !important;
    color: #16193d !important;
    padding: 12px 14px !important;
    font-size: 14px;
}

.maxerp-form .fi-fo-field-wrp {
    margin-bottom: 18px;
}

.maxerp-form label.fi-fo-checkbox-label,
.maxerp-form .fi-fo-checkbox {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13px;
}

.maxerp-form button[type="submit"],
.maxerp-form .fi-btn {
    width: 100%;
    background: #0f1a4d !important;
    border-radius: 999px !important;
    padding: 14px 0 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    justify-content: center;
    border: none !important;
    margin-top: 8px;
}

.maxerp-form .fi-btn-label {
    color: #ffffff !important;
}

.maxerp-form-actions {
    margin-top: 4px;
}

@media (max-width: 820px) {
    .maxerp-auth-card {
        flex-direction: column;
    }

    .maxerp-heading {
        font-size: 32px;
    }
}
