/* MRM sign-in styling. The authenticated Filament workspace is unchanged. */

.mrm-auth-shell {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(440px, 1.1fr);
    min-height: 100svh;
    color: #211a2e;
    background: #faf9fc;
    font-family: ui-sans-serif, system-ui, sans-serif;
}

/* Dark-and-gold branding pane */
.mrm-auth-brand {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    padding: 48px clamp(32px, 5vw, 80px);
    color: #fff;
    background: linear-gradient(145deg, #050505, #15130e 60%, #211d12);
}

.mrm-auth-brand::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    opacity: 0.1;
    background-image:
        linear-gradient(#fff 1px, transparent 1px),
        linear-gradient(90deg, #fff 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, transparent, #000);
}

.mrm-auth-brand::after {
    position: absolute;
    z-index: -1;
    right: -260px;
    bottom: -240px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    content: "";
    background: #c6a24a;
    opacity: 0.16;
    filter: blur(50px);
}

.mrm-auth-logo {
    display: block;
    width: 190px;
}

.mrm-auth-logo img {
    display: block;
    width: 100%;
    max-height: 100px;
    height: auto;
    object-fit: contain;
}

.mrm-auth-eyebrow {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ffffff24;
    border-radius: 100px;
    color: #d4b45e;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.mrm-auth-brand h1 {
    margin: 24px 0;
    color: #fff;
    font-size: clamp(40px, 4.8vw, 70px);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.08;
}

.mrm-auth-brand h1 span {
    color: #d4b45e;
}

.mrm-auth-brand-copy p {
    max-width: 360px;
    color: #ffffffa6;
    font-size: 14px;
    line-height: 1.9;
}

.mrm-auth-brand-rule {
    width: 48px;
    height: 3px;
    margin-top: 32px;
    border-radius: 8px;
    background: #c6a24a;
}

.mrm-auth-brand-footer {
    color: #ffffff8c;
    font-size: 11px;
}

/* Light SOM-style login pane */
.mrm-auth-main {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    margin: 0;
    padding: 100px 40px;
    background: #faf9fc;
}

.mrm-auth-back {
    position: absolute;
    top: 44px;
    left: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #82798d;
    font-size: 12px;
}

.mrm-auth-back:hover,
.mrm-auth-policies a:hover {
    color: #a9852f;
}

.mrm-auth-card {
    width: 100%;
    max-width: 430px;
    margin: auto;
}

.mrm-auth-label {
    display: block;
    margin-bottom: 16px;
    color: #a9852f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.mrm-auth-card h2 {
    margin: 0;
    color: #211a2e;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.2;
}

.mrm-auth-intro {
    margin: 16px 0 32px;
    color: #82798d;
    font-size: 13px;
    line-height: 1.8;
}

/* Filament form fields */
.mrm-auth-fields {
    display: grid;
    gap: 20px;
}

.mrm-auth-fields .fi-fo-field-label-content {
    color: #51465f;
    font-size: 13px;
    font-weight: 600;
}

.mrm-auth-fields .fi-input-wrp {
    min-height: 54px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 0 0 1px #e4dfeb;
    transition: box-shadow 0.2s ease;
}

.mrm-auth-fields .fi-input-wrp:focus-within {
    box-shadow: 0 0 0 1px #c6a24a, 0 0 0 4px #c6a24a26;
}

.mrm-auth-fields input:not([type="checkbox"]) {
    box-sizing: border-box;
    width: 100%;
    min-height: 54px;
    padding-inline: 16px;
    border-radius: 14px;
    color: #211a2e;
    font-size: 14px;
}

.mrm-auth-fields > div > input {
    border: 1px solid #e4dfeb;
    outline: none;
    background: #fff;
    color: #211a2e;
}

.mrm-auth-fields > div > input:focus {
    border-color: #c6a24a;
    box-shadow: 0 0 0 4px #c6a24a26;
}

.mrm-auth-fields input::placeholder {
    color: #a39aaa;
}

/* Checkboxes: box and label side by side, gold when checked */
.mrm-auth-fields label.fi-fo-field-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.mrm-auth-fields label.fi-fo-field-label .fi-fo-field-label-content {
    color: #51465f;
    font-size: 13px;
    font-weight: 500;
}

.mrm-auth-fields .fi-checkbox-input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    border: 1px solid #d4cde0;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mrm-auth-fields .fi-checkbox-input:hover {
    border-color: #c6a24a;
}

.mrm-auth-fields .fi-checkbox-input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px #c6a24a26;
}

.mrm-auth-fields .fi-checkbox-input:checked {
    border-color: #a9852f;
    background-color: #c6a24a;
}

.mrm-auth-fields .fi-link,
.mrm-auth-card a,
.mrm-auth-help a {
    color: #a9852f;
}

/* Gold login button */
.mrm-auth-fields .fi-btn[type="submit"],
.mrm-auth-fields > button[type="submit"] {
    display: flex;
    width: 100%;
    min-height: 52px;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(100deg, #d4b45e, #a9852f);
    color: #17130b;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 6px 16px #c6a24a26;
    cursor: pointer;
}

.mrm-auth-fields .fi-btn:not([type="submit"]) {
    min-height: 52px;
    border-radius: 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.mrm-auth-fields .fi-btn:not([type="submit"]) .fi-icon {
    color: #fff;
}

.mrm-auth-fields .fi-btn[type="submit"]:hover,
.mrm-auth-fields > button[type="submit"]:hover {
    filter: brightness(1.05);
}

.mrm-auth-fields > button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.mrm-auth-help {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e9e5ee;
    color: #91889b;
    font-size: 11px;
    line-height: 1.8;
}

.mrm-auth-policies {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 430px;
    margin: 40px auto 0;
    color: #82798d;
    font-size: 10px;
}

.mrm-auth-copyright {
    margin-left: auto;
}

.mrm-auth-shell a {
    text-decoration: none;
}

.mrm-auth-shell a:focus-visible {
    border-radius: 4px;
    outline: 2px solid #c6a24a;
    outline-offset: 4px;
}

.mrm-auth-shell .mrm-auth-error {
    color: #b42318;
    font-size: 13px;
}

@media (max-width: 850px) {
    .mrm-auth-shell {
        grid-template-columns: 1fr;
    }

    .mrm-auth-brand {
        gap: 0;
        padding: 24px;
    }

    .mrm-auth-logo {
        width: 150px;
    }

    .mrm-auth-brand-copy,
    .mrm-auth-brand-footer {
        display: none;
    }

    .mrm-auth-main {
        min-height: calc(100svh - 108px);
        padding: 80px 24px 32px;
    }

    .mrm-auth-back {
        top: 28px;
        left: 24px;
    }

    .mrm-auth-card h2 {
        font-size: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mrm-auth-fields .fi-input-wrp {
        transition: none;
    }
}
