/* Filmnab auth pages are loaded after legacy Revolution/Landing styles. */
body.fn-auth {
    min-height: 100vh;
    margin: 0;
    color: #f8fafc;
    background:
        radial-gradient(circle at 78% 16%, rgba(168, 85, 247, 0.20), transparent 34rem),
        radial-gradient(circle at 18% 82%, rgba(124, 58, 237, 0.16), transparent 30rem),
        linear-gradient(135deg, #08070d 0%, #12051f 48%, #050505 100%) !important;
    overflow-x: hidden;
}

body.fn-auth::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
}

body.fn-auth .fn-auth-shell {
    min-height: 100svh;
    width: 100%;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 3rem) !important;
    box-sizing: border-box;
}

body.fn-auth .fn-auth-card {
    position: relative;
    isolation: isolate;
    width: min(100%, 480px) !important;
    max-width: 480px !important;
    min-height: 0 !important;
    padding: clamp(1.35rem, 3.2vw, 2.35rem) !important;
    border-radius: 30px !important;
    border: 1px solid rgba(168,85,247,0.34) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.035)),
        rgba(12, 10, 18, 0.84) !important;
    box-shadow:
        0 28px 80px rgba(0,0,0,0.62),
        0 0 0 1px rgba(255,255,255,0.035) inset,
        0 0 70px rgba(168,85,247,0.18) !important;
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
    overflow: hidden;
}

body.fn-auth .fn-auth-card::after {
    content: "";
    position: absolute;
    inset: auto -25% -40% -25%;
    height: 220px;
    background: radial-gradient(closest-side, rgba(168,85,247,0.20), transparent 72%);
    z-index: -1;
}

body.fn-auth .fn-auth-brand {
    width: 58px;
    height: 58px;
    margin: 0 auto 1rem;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #9333ea 62%, #7c3aed);
    box-shadow: 0 14px 34px rgba(147,51,234,0.38);
}

body.fn-auth .fn-auth-brand__mark {
    transform: translateX(-1px);
    font-size: 1.45rem;
    line-height: 1;
}

body.fn-auth .fn-auth-head {
    margin-bottom: 1.45rem !important;
}

body.fn-auth .fn-auth-kicker {
    margin: 0 0 0.45rem;
    color: #c084fc;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

body.fn-auth .fn-heading-display {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(1.35rem, 4.4vw, 1.85rem) !important;
    font-weight: 900 !important;
    line-height: 1.45 !important;
    text-wrap: balance;
}

body.fn-auth .fn-auth-subtitle {
    margin: 0.75rem auto 0;
    max-width: 34ch;
    color: rgba(255,255,255,0.62);
    font-size: 0.9rem;
    line-height: 1.9;
}

body.fn-auth #account,
body.fn-auth .fn-login-form,
body.fn-auth .fn-login-panel,
body.fn-auth .fn-login-panel .row,
body.fn-auth .fn-login-panel [class*="col-"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    box-sizing: border-box;
}

body.fn-auth .fn-auth-field,
body.fn-auth .fn-auth-action,
body.fn-auth .fn-auth-resend {
    margin-bottom: 0.95rem !important;
}

body.fn-auth .fn-auth-label,
body.fn-auth .activationCode-title {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin: 0 0 0.5rem !important;
    color: rgba(255,255,255,0.78) !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    line-height: 1.6 !important;
    text-align: right !important;
}

body.fn-auth .login-input,
body.fn-auth .activeCode-input,
body.fn-auth input.form-control {
    width: 100% !important;
    min-width: 0 !important;
    height: 54px !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 0.85rem 1rem !important;
    border: 1px solid rgba(255,255,255,0.13) !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,0.075) !important;
    color: #fff !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset !important;
    direction: rtl;
    text-align: center !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease !important;
}

body.fn-auth .login-input::placeholder,
body.fn-auth .activeCode-input::placeholder {
    color: rgba(255,255,255,0.38) !important;
    font-weight: 700;
}

body.fn-auth .login-input:focus,
body.fn-auth .activeCode-input:focus {
    outline: none !important;
    border-color: rgba(168,85,247,0.85) !important;
    background: rgba(168,85,247,0.11) !important;
    box-shadow: 0 0 0 4px rgba(168,85,247,0.18), 0 14px 34px rgba(0,0,0,0.24) !important;
    transform: translateY(-1px);
}

body.fn-auth .activation-inner-div {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    direction: rtl !important;
}

body.fn-auth .ruls-p {
    min-height: 44px;
    margin: 0.15rem 0 1rem !important;
    padding: 0.7rem 0.85rem;
    display: flex !important;
    align-items: center !important;
    justify-content: center;
    gap: 0.5rem !important;
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: 16px;
    background: rgba(168,85,247,0.08);
    color: rgba(255,255,255,0.72) !important;
    font-size: 0.84rem !important;
    line-height: 1.7;
    text-align: center;
}

body.fn-auth .ruls-a {
    color: #d8b4fe !important;
    border-bottom: 0 !important;
    text-decoration: none !important;
    font-weight: 900 !important;
}

body.fn-auth #login-button,
body.fn-auth #activation-button,
body.fn-auth #resendCode,
body.fn-auth .fn-btn-primary,
body.fn-auth .btn {
    float: none !important;
    width: 100% !important;
    min-height: 52px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 !important;
    padding: 0.8rem 1rem !important;
    border: 0 !important;
    border-radius: 16px !important;
    white-space: nowrap;
    font-size: 1rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    box-shadow: 0 16px 34px rgba(147,51,234,0.32) !important;
}

body.fn-auth #login-button,
body.fn-auth #activation-button,
body.fn-auth .fn-btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 52%, #9333ea 100%) !important;
}

body.fn-auth #resendCode {
    width: auto !important;
    min-width: 148px;
    min-height: 44px !important;
    margin-inline-start: auto !important;
    padding-inline: 1rem !important;
    color: rgba(255,255,255,0.78) !important;
    background: rgba(255,255,255,0.10) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    box-shadow: none !important;
    font-size: 0.86rem !important;
}

body.fn-auth #resendCode:disabled,
body.fn-auth .resend-code-disabled {
    opacity: 0.58 !important;
    cursor: not-allowed !important;
}

body.fn-auth #login-error {
    display: block;
    min-height: 1.35rem;
    color: #fecaca !important;
    font-size: 0.86rem;
    line-height: 1.8;
    text-align: center;
    overflow-wrap: anywhere;
}

body.fn-auth .login-input[readonly] {
    opacity: 0.72;
    cursor: not-allowed;
}

@media (max-width: 575.98px) {
    body.fn-auth .fn-auth-shell {
        padding: 1rem !important;
        place-items: start center;
    }

    body.fn-auth .fn-auth-card {
        border-radius: 24px !important;
        padding: 1.1rem !important;
    }

    body.fn-auth .fn-auth-brand {
        width: 50px;
        height: 50px;
        border-radius: 17px;
    }

    body.fn-auth .login-input,
    body.fn-auth .activeCode-input,
    body.fn-auth input.form-control {
        height: 52px !important;
        min-height: 52px !important;
    }
}
