:root {
            --jrv-dark-1: #030712;
            --jrv-dark-2: #071226;
            --jrv-dark-3: #0b2f72;
            --jrv-cyan: #00c8ff;
            --jrv-cyan-soft: rgba(0, 200, 255, .16);
            --jrv-blue: #0b6bff;
            --jrv-text: #eaf6ff;
            --jrv-muted: #93a4b8;
            --jrv-surface: rgba(255,255,255,.08);
            --jrv-border: rgba(255,255,255,.12);
        }

        html,
        body {
            min-height: 100%;
        }

        html {
            overflow-x: hidden;
            -webkit-text-size-adjust: 100%;
        }

        body {
            margin: 0;
            font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            color: var(--jrv-text);
            background:
                radial-gradient(circle at 20% 10%, rgba(0, 200, 255, .20), transparent 28%),
                radial-gradient(circle at 80% 35%, rgba(11, 107, 255, .16), transparent 32%),
                linear-gradient(135deg, #030712 0%, #06101f 45%, #081a30 100%);
            overflow-x: hidden;
        }

        body::before {
            content: "";
            position: fixed;
            inset: 0;
            pointer-events: none;
            background:
                linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
            background-size: 42px 42px;
            mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 78%);
        }

        .jrv-login-shell {
            position: relative;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
        }

        .jrv-login-header {
            height: 72px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 44px;
            border-bottom: 1px solid rgba(255,255,255,.08);
            background: rgba(3, 7, 18, .55);
            backdrop-filter: blur(16px);
        }

        .jrv-login-header-logo {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
        }

        .jrv-login-header-logo img {
            height: 34px;
            width: auto;
            max-width: 180px;
            object-fit: contain;
            display: block;
        }

        .jrv-login-header-badge {
            height: 36px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 0 14px;
            border-radius: 999px;
            color: #bff8ff;
            background: rgba(0, 200, 255, .08);
            border: 1px solid rgba(0, 200, 255, .18);
            font-size: 13px;
            font-weight: 700;
        }

        .jrv-login-main {
            flex: 1;
            display: grid;
            grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
            gap: 56px;
            align-items: center;
            width: min(1220px, calc(100% - 48px));
            margin: 0 auto;
            padding: 54px 0 64px;
        }

        @media (max-height: 860px) {
            .jrv-login-main {
                align-items: start;
                padding-top: 28px;
                padding-bottom: 40px;
            }
        }

        .jrv-login-hero {
            max-width: 620px;
        }

        .jrv-login-kicker {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0;
            height: auto;
            min-height: 34px;
            padding: 6px 16px;
            margin-bottom: 18px;
            border-radius: 999px;
            color: #8ff3ff;
            background: rgba(0, 200, 255, .08);
            border: 1px solid rgba(0, 200, 255, .18);
        }

        /* Pill “JRV Editor Studio”: só no mobile; desktop mantém a logo grande no hero */
        .jrv-login-kicker.jrv-login-hero-product-kicker {
            display: none;
            font-size: 13px;
            font-weight: 700;
        }

        .jrv-login-kicker-logo {
            height: 22px;
            width: auto;
            max-width: 200px;
            object-fit: contain;
            display: block;
            opacity: 0.95;
        }

        /* Marca JRV Editor Studio na coluna esquerda — discreta, não compete com o headline */
        .jrv-login-hero-brand-wrap {
            margin: 0 0 20px;
        }

        .login-brand-large {
            max-width: 260px;
            width: 100%;
            height: auto;
            max-height: 86px;
            object-fit: contain;
            display: block;
            opacity: 0.92;
            filter: drop-shadow(0 0 10px rgba(0, 200, 255, .10));
        }

        .jrv-login-title {
            margin: 0;
            font-size: clamp(42px, 5vw, 68px);
            line-height: .98;
            letter-spacing: -0.06em;
            font-weight: 800;
        }

        .jrv-login-title span {
            display: block;
            color: #33d6ff;
            text-shadow: 0 0 24px rgba(0, 200, 255, .24);
        }

        .jrv-login-description {
            max-width: 560px;
            margin: 24px 0 0;
            color: #a9b7ca;
            font-size: 17px;
            line-height: 1.7;
        }

        .jrv-login-metrics {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
            margin-top: 34px;
        }

        .jrv-login-metric {
            min-height: 104px;
            padding: 18px;
            border-radius: 18px;
            background: rgba(255,255,255,.045);
            border: 1px solid rgba(255,255,255,.09);
            box-shadow: 0 12px 34px rgba(0,0,0,.20);
        }

        .jrv-login-metric i {
            display: block;
            margin-bottom: 10px;
            color: var(--jrv-cyan);
            font-size: 17px;
        }

        .jrv-login-metric strong {
            display: block;
            color: #ffffff;
            font-size: 28px;
            line-height: 1;
            font-weight: 800;
        }

        .jrv-login-metric span {
            display: block;
            margin-top: 8px;
            color: #8ea1b8;
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .08em;
        }

        .jrv-login-panel-wrap {
            position: relative;
            max-width: 100%;
            min-width: 0;
        }

        .jrv-login-panel-wrap::before {
            content: "";
            position: absolute;
            inset: -70px -44px auto auto;
            width: 240px;
            height: 240px;
            border-radius: 999px;
            background: rgba(0, 200, 255, .16);
            filter: blur(54px);
            pointer-events: none;
        }

        .jrv-login-card {
            position: relative;
            overflow-x: clip;
            overflow-y: visible;
            border-radius: 28px;
            border: 1px solid rgba(255,255,255,.13);
            background:
                linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.055));
            box-shadow:
                0 24px 70px rgba(0, 0, 0, .36),
                inset 0 1px 0 rgba(255,255,255,.16);
            backdrop-filter: blur(18px);
        }

        .jrv-login-card::after {
            content: "";
            position: absolute;
            left: 10%;
            right: 10%;
            bottom: 0;
            height: 3px;
            border-radius: 999px;
            background: linear-gradient(90deg, transparent, #00c8ff, #1ea7ff, transparent);
            box-shadow: 0 0 14px rgba(0,200,255,.9), 0 -10px 28px rgba(0,120,255,.35);
        }

        .jrv-login-card-header {
            padding: 40px 36px 26px;
            border-bottom: 1px solid rgba(255,255,255,.08);
            text-align: center;
        }

        .jrv-login-card-header--platform .jrv-login-product-logo-wrap {
            margin-bottom: 12px;
        }

        .jrv-login-product-logo-wrap {
            display: flex;
            flex-direction: column;
            min-height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0;
        }

        /* Fundo suave atrás da logo do cliente — contraste sem competir com o card */
            .jrv-login-product-logo-wrap.login-client-logo-box {
                padding: 14px 20px;
                border-radius: 16px;
                background: #e3eefc;
                border: 1px solid rgba(255, 255, 255, 0.08);
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
            }

        .jrv-login-product-logo-wrap.login-client-logo-box .jrv-login-client-logo {
            filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
        }

        .jrv-login-product-logo {
            width: min(360px, 100%);
            height: auto;
            max-height: 118px;
            object-fit: contain;
            display: block;
            filter: drop-shadow(0 0 18px rgba(0, 200, 255, .26));
        }

        .jrv-login-client-logo {
            width: min(320px, 100%);
            height: auto;
            max-height: 100px;
            object-fit: contain;
            display: block;
            filter: drop-shadow(0 0 14px rgba(0, 200, 255, .18));
        }

        .login-client-name {
            font-size: 18px;
            font-weight: 700;
            color: #241e1e;
            margin-top: 14px;
            text-align: center;
            letter-spacing: -0.02em;
            line-height: 1.25;
        }

        .login-divider {
            width: 54px;
            height: 3px;
            border-radius: 999px;
            margin: 14px auto 18px auto;
            background: linear-gradient(90deg, #22d3ee, #0ea5e9);
            box-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
        }

        .jrv-login-card-title.login-card-title {
            margin: 0;
            font-size: 16px;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.92);
            letter-spacing: -0.01em;
            margin-bottom: 10px;
        }

        .jrv-login-card-subtitle {
            margin: 0;
            color: rgba(159, 176, 196, 0.92);
            font-size: 13px;
            line-height: 1.5;
            font-weight: 500;
        }

        .jrv-login-form {
            padding: 30px 36px 36px;
            color-scheme: dark;
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
        }

        .jrv-form-group {
            margin-bottom: 18px;
        }

        .jrv-form-label {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
            padding: 0;
            color: #cbd8ea;
            font-size: 13px;
            font-weight: 700;
        }

        .jrv-form-label i {
            color: var(--jrv-cyan);
            font-size: 13px;
        }

        .jrv-form-control,
        .jrv-form-control:focus {
            height: 52px;
            border-radius: 14px;
            font-size: 14px;
            box-shadow: none;
        }

        /* Inputs: fundo slate da referência (~#1e293b / rgba(30,41,59)); Bootstrap + autofill com !important */
        input.form-control.jrv-form-control.login-input {
            color: #f1f5f9 !important;
            background-color: rgba(30, 41, 59, 0.72) !important;
            background-image: none !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
        }

        input.form-control.jrv-form-control.login-input:hover {
            border-color: rgba(255, 255, 255, 0.14) !important;
            background-color: rgba(30, 41, 59, 0.85) !important;
        }

        input.form-control.jrv-form-control.login-input::placeholder {
            color: #94a3b8;
        }

        input.form-control.jrv-form-control.login-input:focus {
            color: #fff !important;
            background-color: rgba(30, 41, 59, 0.92) !important;
            border-color: rgba(56, 189, 248, 0.45) !important;
            box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12) !important;
        }

        input.form-control.jrv-form-control.login-input:-webkit-autofill,
        input.form-control.jrv-form-control.login-input:-webkit-autofill:hover,
        input.form-control.jrv-form-control.login-input:-webkit-autofill:focus,
        input.form-control.jrv-form-control.login-input:-webkit-autofill:active {
            -webkit-box-shadow: 0 0 0 1000px #1e293b inset !important;
            box-shadow: 0 0 0 1000px #1e293b inset !important;
            -webkit-text-fill-color: #f1f5f9 !important;
            caret-color: #f1f5f9;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            transition: background-color 99999s ease-out 0s;
        }

        input.form-control.jrv-form-control.login-input:-webkit-autofill:focus {
            -webkit-box-shadow: 0 0 0 1000px rgba(30, 41, 59, 0.95) inset !important;
            box-shadow: 0 0 0 1000px rgba(30, 41, 59, 0.95) inset, 0 0 0 4px rgba(14, 165, 233, 0.12) !important;
            border-color: rgba(56, 189, 248, 0.45) !important;
        }

        .jrv-password-field {
            position: relative;
            width: 100%;
        }

        .jrv-password-field .login-input {
            width: 100%;
            padding-right: 52px;
        }

        .jrv-password-toggle {
            position: absolute;
            top: 0;
            right: 0;
            width: 52px;
            height: 52px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            border: 0;
            border-radius: 0 14px 14px 0;
            color: #94a3b8;
            background: transparent;
            cursor: pointer;
            transition: color .18s ease, background-color .18s ease;
        }

        .jrv-password-toggle:hover,
        .jrv-password-toggle:focus {
            color: #e2e8f0;
            background-color: rgba(255, 255, 255, 0.04);
            outline: none;
            box-shadow: none;
        }

        .jrv-remember-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            margin: 20px 0 24px;
        }

        .jrv-remember-row .form-check {
            display: flex;
            align-items: center;
            gap: 10px;
            min-height: auto;
            padding-left: 0;
            margin: 0;
        }

        .jrv-remember-row .form-check-input {
            width: 18px;
            height: 18px;
            margin: 0;
            cursor: pointer;
            background-color: rgba(255,255,255,.08);
            border-color: rgba(255,255,255,.18);
            box-shadow: none;
        }

        .jrv-remember-row .form-check-input:checked {
            background-color: var(--jrv-cyan);
            border-color: var(--jrv-cyan);
        }

        .jrv-remember-row .form-check-label {
            color: #cbd8ea;
            font-size: 13px;
            cursor: pointer;
        }

        .jrv-login-form .field-validation-error,
        .jrv-login-form .text-danger.small:not(.field-validation-valid) {
            display: block;
            margin-top: 6px;
            color: #ff8f8f;
            font-size: 13px;
            font-weight: 500;
        }

        .jrv-login-alert.validation-summary-errors {
            margin-bottom: 16px;
            padding: 12px 14px;
            border-radius: 12px;
            border: 1px solid rgba(255, 120, 120, .35);
            background: rgba(255, 80, 80, .12);
            color: #ffc9c9;
            font-size: 14px;
        }

        .jrv-login-button {
            width: 100%;
            height: 52px;
            border: 0;
            border-radius: 14px;
            color: #04111f;
            background: linear-gradient(135deg, #20e3ff, #0b8cff);
            box-shadow: 0 14px 30px rgba(0, 200, 255, .22);
            font-weight: 800;
            letter-spacing: .01em;
            transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
        }

        .jrv-login-button:hover,
        .jrv-login-button:focus {
            color: #04111f;
            transform: translateY(-1px);
            filter: brightness(1.04);
            box-shadow: 0 18px 38px rgba(0, 200, 255, .28);
        }

        .jrv-login-button-secondary {
            width: 100%;
            height: 48px;
            margin-top: 10px;
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 14px;
            background: transparent;
            color: #cbd8ea;
            font-weight: 600;
            transition: background .18s ease, border-color .18s ease;
        }

        .jrv-login-button-secondary:hover,
        .jrv-login-button-secondary:focus {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.28);
            color: #f8fafc;
        }

        .jrv-login-offer-panel {
            margin-bottom: 1.25rem;
            padding: 14px 16px;
            border-radius: 14px;
            background: rgba(0, 200, 255, 0.08);
            border: 1px solid rgba(0, 200, 255, 0.18);
        }

        .jrv-login-offer-list {
            margin: 0;
            padding: 0;
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 10px;
            color: #cbd8ea;
            font-size: 13px;
        }

        .jrv-login-offer-list i {
            color: #38bdf8;
            margin-right: 8px;
        }

        .jrv-login-qr-wrap {
            margin-bottom: 1.25rem;
            padding: 16px;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
            text-align: center;
        }

        .jrv-login-qr-image {
            border-radius: 12px;
            background: #fff;
            padding: 8px;
            margin-bottom: 12px;
        }

        .jrv-login-manual-key-label {
            margin: 0 0 6px;
            color: #94a3b8;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }

        .jrv-login-manual-key {
            display: block;
            color: #e2e8f0;
            font-size: 12px;
            word-break: break-all;
        }

        .jrv-login-recovery-panel {
            margin-bottom: 1.25rem;
            padding: 14px;
            border-radius: 14px;
            background: rgba(251, 191, 36, 0.1);
            border: 1px solid rgba(251, 191, 36, 0.28);
        }

        .jrv-login-recovery-actions {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
        }

        .jrv-login-recovery-btn {
            border: 1px solid rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.08);
            color: #f8fafc;
        }

        .jrv-login-recovery-list {
            margin: 0;
            padding-left: 1.1rem;
            color: #fde68a;
            font-size: 13px;
            columns: 2;
            column-gap: 1rem;
        }

        .jrv-login-link-button--submit {
            font: inherit;
        }

        .jrv-login-footer-note {
            margin-top: 18px;
            color: #71839a;
            font-size: 12px;
            text-align: center;
        }

        .jrv-login-forgot-link {
            color: #38bdf8;
            font-size: 13px;
            font-weight: 600;
            text-decoration: none;
            white-space: nowrap;
        }

        .jrv-login-forgot-link:hover,
        .jrv-login-forgot-link:focus {
            color: #7dd3fc;
            text-decoration: underline;
        }

        .jrv-login-email-highlight {
            color: #f8fafc;
            font-weight: 700;
        }

        .jrv-login-code-input {
            letter-spacing: 0.35em;
            text-align: center;
            font-size: 1.25rem;
            font-weight: 700;
        }

        .jrv-login-secondary-actions {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        /* Conteúdo fora de .jrv-login-form (picker de canal, alertas, links após form) */
        .jrv-login-card > .jrv-login-2fa-picker-hint {
            padding: 4px 36px 0;
            box-sizing: border-box;
        }

        .jrv-login-card > .jrv-login-2fa-methods {
            padding: 0 36px;
            box-sizing: border-box;
            max-width: 100%;
        }

        .jrv-login-card > .jrv-login-alert {
            margin-left: 36px;
            margin-right: 36px;
            max-width: calc(100% - 72px);
            box-sizing: border-box;
        }

        .jrv-login-card > .jrv-login-secondary-actions {
            position: relative;
            z-index: 1;
            padding: 0 36px calc(36px + env(safe-area-inset-bottom, 0px));
            box-sizing: border-box;
            max-width: 100%;
        }

        .jrv-login-form + .jrv-login-secondary-actions {
            margin-top: 0;
            padding-top: 0.25rem;
        }

        .jrv-login-link-button {
            padding: 0;
            border: 0;
            background: transparent;
            color: #38bdf8;
            font-size: 13px;
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
        }

        .jrv-login-link-button:hover,
        .jrv-login-link-button:focus {
            color: #7dd3fc;
            text-decoration: underline;
        }

        .jrv-login-alert:not(:empty) {
            margin-bottom: 1rem;
            padding: 0.75rem 1rem;
            border-radius: 12px;
            background: rgba(239, 68, 68, 0.12);
            border: 1px solid rgba(248, 113, 113, 0.35);
            color: #fecaca;
            font-size: 13px;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        .jrv-login-metrics--compact {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .jrv-login-footer-note img {
            opacity: 0.88;
            max-height: 28px;
            width: auto;
        }

        .toast-top-center {
            top: 20px;
        }

        /* Rodapé compacto só no mobile — desktop não exibe (evita duplicar marcas no card) */
        .login-mobile-brand-footer {
            display: none;
        }

        @media (max-width: 991.98px) {
            .jrv-login-header {
                padding: 0 20px;
            }

            .jrv-login-main {
                grid-template-columns: 1fr;
                width: min(620px, calc(100% - 32px));
                gap: 30px;
                padding-top: 34px;
            }

            .jrv-login-hero {
                text-align: center;
                margin: 0 auto;
            }

            .jrv-login-hero .login-brand-large {
                margin-left: auto;
                margin-right: auto;
            }

            .jrv-login-description {
                margin-left: auto;
                margin-right: auto;
            }

            .jrv-login-metrics {
                grid-template-columns: 1fr;
            }
        }

        /* Mobile ≤768px: texto institucional acima do card; assinatura Editor + Tecnologia no rodapé */
        @media (max-width: 768px) {
            .jrv-login-shell {
                min-height: 100vh;
                gap: 0;
            }

            .jrv-login-header {
                height: auto;
                min-height: 52px;
                padding: 12px 16px 10px;
                justify-content: center;
                border-bottom-color: rgba(255, 255, 255, 0.06);
            }

            .jrv-login-header-logo {
                margin: 0 auto;
            }

            .jrv-login-header-logo img {
                height: 30px;
                max-width: 200px;
            }

            .jrv-login-header-badge {
                display: none !important;
            }

            .jrv-login-main {
                display: flex;
                flex-direction: column;
                align-items: center;
                flex: 1;
                gap: 12px;
                width: 100%;
                max-width: 100%;
                padding: 10px 14px calc(16px + env(safe-area-inset-bottom, 0px));
                margin: 0 auto;
                box-sizing: border-box;
                overflow-x: hidden;
                min-width: 0;
            }

            .jrv-login-hero {
                display: block !important;
                max-width: 100%;
                width: 100%;
                text-align: center;
                margin: 0 auto;
                padding: 0;
            }

            .jrv-login-kicker.jrv-login-hero-product-kicker {
                display: inline-flex !important;
                align-items: center;
                gap: 8px;
                margin-bottom: 10px;
            }

            .jrv-login-hero .jrv-login-hero-brand-wrap,
            .jrv-login-hero .jrv-login-description,
            .jrv-login-hero .jrv-login-metrics {
                display: none !important;
            }

            .jrv-login-hero .jrv-login-title {
                font-size: 28px !important;
                line-height: 1.06;
                letter-spacing: -0.04em;
                margin-top: 0;
            }

            .jrv-login-panel-wrap {
                width: 100%;
                max-width: 384px;
                margin: 0 auto;
                overflow-x: hidden;
                overflow-y: visible;
                min-width: 0;
            }

            .jrv-login-panel-wrap::before {
                opacity: 0.65;
                inset: -36px -16px auto auto;
                width: 160px;
                height: 160px;
            }

            .jrv-login-card {
                width: 100%;
                max-width: 100%;
                margin: 0 auto;
                border-radius: 24px;
            }

            .jrv-login-card-header,
            .jrv-login-form {
                padding: 18px 18px 20px;
            }

            .jrv-login-card > .jrv-login-2fa-picker-hint,
            .jrv-login-card > .jrv-login-2fa-methods,
            .jrv-login-card > .jrv-login-secondary-actions {
                padding-left: 18px;
                padding-right: 18px;
            }

            .jrv-login-card > .jrv-login-alert {
                margin-left: 18px;
                margin-right: 18px;
                max-width: calc(100% - 36px);
            }

            .jrv-login-card > .jrv-login-secondary-actions {
                padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
            }

            .jrv-login-form + .jrv-login-secondary-actions {
                padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
            }

            .jrv-login-product-logo-wrap:not(.login-client-logo-box) {
                min-height: auto !important;
                margin-bottom: 10px;
            }

            /* Caixa clara da logo do cliente: mais altura, quase largura total do card, logo centrada */
            .jrv-login-product-logo-wrap.login-client-logo-box {
                min-height: 118px !important;
                padding: 18px 20px !important;
                margin-bottom: 12px;
                width: 100%;
                max-width: 100%;
                box-sizing: border-box;
                display: flex !important;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                border-radius: 20px;
            }

            .jrv-login-product-logo-wrap.login-client-logo-box .jrv-login-client-logo {
                max-height: 82px;
                max-width: 92%;
                width: auto;
                height: auto;
                object-fit: contain;
                margin: 0 auto;
                display: block;
            }

            .jrv-login-product-logo {
                max-height: 64px;
            }

            .login-client-name {
                font-size: 15px;
                margin-top: 8px;
            }

            .login-divider {
                margin: 10px auto 14px auto;
            }

            .jrv-login-card-title.login-card-title {
                font-size: 15px;
            }

            .jrv-login-form {
                padding-top: 16px;
                padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
                min-width: 0;
                overflow-x: hidden;
            }

            .jrv-remember-row {
                margin: 14px 0 18px;
            }

            .jrv-login-button {
                min-height: 52px;
                height: 54px;
            }

            .jrv-login-footer-note {
                display: none !important;
            }

            .login-mobile-brand-footer {
                display: flex;
                align-items: center;
                justify-content: center;
                flex-wrap: wrap;
                gap: 12px 18px;
                width: 100%;
                max-width: 384px;
                margin: 0 auto;
                padding: 8px 12px calc(20px + env(safe-area-inset-bottom, 0px));
                box-sizing: border-box;
            }

            .login-mobile-brand-footer-link {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                text-decoration: none;
                line-height: 0;
            }

            .login-mobile-footer-logo {
                height: 32px;
                max-height: 36px;
                width: auto;
                max-width: 160px;
                object-fit: contain;
                opacity: 0.95;
                filter: drop-shadow(0 0 10px rgba(0, 200, 255, 0.12));
            }

            .login-mobile-brand-separator {
                width: 1px;
                height: 28px;
                background: rgba(255, 255, 255, 0.22);
                flex-shrink: 0;
                border-radius: 1px;
            }
        }

        @media (max-width: 575.98px) {
            .jrv-login-card-header,
            .jrv-login-form {
                padding-left: 16px;
                padding-right: 16px;
            }

            .jrv-login-card > .jrv-login-2fa-picker-hint,
            .jrv-login-card > .jrv-login-2fa-methods,
            .jrv-login-card > .jrv-login-secondary-actions {
                padding-left: 16px;
                padding-right: 16px;
            }

            .jrv-login-card > .jrv-login-alert {
                margin-left: 16px;
                margin-right: 16px;
                max-width: calc(100% - 32px);
            }

            .jrv-login-product-logo-wrap.login-client-logo-box {
                padding: 10px 14px;
            }
        }

        @media (max-width: 480px) {
            .jrv-login-panel-wrap {
                max-width: 100%;
            }

            .jrv-login-hero .jrv-login-title {
                font-size: 24px !important;
            }

            .jrv-login-card {
                border-radius: 22px;
            }

            .jrv-login-card-header,
            .jrv-login-form {
                padding: 16px 14px 18px;
            }

            .jrv-login-card > .jrv-login-2fa-picker-hint,
            .jrv-login-card > .jrv-login-2fa-methods,
            .jrv-login-card > .jrv-login-secondary-actions {
                padding-left: 14px;
                padding-right: 14px;
            }

            .jrv-login-card > .jrv-login-alert {
                margin-left: 14px;
                margin-right: 14px;
                max-width: calc(100% - 28px);
            }

            .jrv-login-card > .jrv-login-secondary-actions,
            .jrv-login-form + .jrv-login-secondary-actions {
                padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
            }

            .login-mobile-footer-logo {
                height: 28px;
                max-height: 32px;
                max-width: 140px;
            }

            .login-mobile-brand-separator {
                height: 24px;
            }
        }

/* Login — seleção de método 2FA */
.jrv-login-2fa-picker-hint {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 0.85rem;
    text-align: center;
}

.jrv-login-2fa-methods {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.jrv-login-2fa-method {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.55);
    color: #e2e8f0;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
}

.jrv-login-2fa-method > span {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.jrv-login-2fa-method:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(30, 41, 59, 0.85);
}

.jrv-login-2fa-method > i:first-child {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.12);
    color: var(--jrv-cyan);
    flex-shrink: 0;
}

.jrv-login-2fa-method .fa-whatsapp {
    color: #25d366;
    background: rgba(37, 211, 102, 0.12);
}

.jrv-login-2fa-method strong {
    display: block;
    font-size: 0.9rem;
    color: #f1f5f9;
}

.jrv-login-2fa-method small {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.jrv-login-2fa-method .fa-chevron-right {
    margin-left: auto;
    color: #64748b;
    font-size: 0.75rem;
}

.jrv-login-2fa-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    margin-bottom: 0.85rem;
    border: none;
    background: none;
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.jrv-login-2fa-back:hover {
    color: var(--jrv-cyan);
}

.jrv-login-2fa-panel {
    display: none;
    min-width: 0;
    max-width: 100%;
}

.jrv-login-2fa-panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.35rem;
}

.jrv-login-2fa-panel-desc,
.jrv-login-2fa-status {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-bottom: 0.85rem;
}

.jrv-login-2fa-status strong {
    color: #e2e8f0;
}

.jrv-passkey-device-list {
    font-size: 0.8125rem;
    color: #94a3b8;
    padding-left: 0;
}

.jrv-passkey-device-list li {
    padding: 0.35rem 0;
}

.jrv-passkey-enroll-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.jrv-passkey-unlock-method[aria-pressed="true"] {
    border-color: rgba(96, 165, 250, 0.55);
    background: rgba(59, 130, 246, 0.12);
}

#jrv-2fa-panel,
#jrv-passkey-enroll-section,
#jrv-passkey-login-section {
    min-width: 0;
    max-width: 100%;
}

.jrv-passkey-try-anyway {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    white-space: normal;
    text-align: left;
    line-height: 1.35;
    padding: 0.25rem 0;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .jrv-login-secondary-actions {
        width: 100%;
        align-items: stretch;
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .jrv-login-link-button {
        display: block;
        width: 100%;
        max-width: 100%;
        text-align: center;
        white-space: normal;
        line-height: 1.45;
        padding: 0.35rem 0;
        overflow-wrap: anywhere;
    }

    .jrv-login-code-input {
        letter-spacing: 0.2em;
        font-size: 1.1rem;
        max-width: 100%;
    }

    .jrv-login-2fa-panel-desc,
    .jrv-login-2fa-status,
    .jrv-login-alert {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .jrv-login-button {
        width: 100%;
        max-width: 100%;
    }

    .btn-link.jrv-passkey-try-anyway,
    .btn-link#jrv-passkey-unlock-resend {
        text-align: left;
        white-space: normal;
    }
}

/* Studio Manager aliases */
.jrv-login-page { min-height: 100vh; }
.jrv-login-brand-panel { max-width: 620px; }

.jrv-login-hero--compact .jrv-login-hero-brand-wrap,
.jrv-login-hero--compact .jrv-login-metrics {
    display: none;
}

.jrv-access-denied-actions {
    padding: 0 28px 28px;
}

.jrv-access-denied-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--jrv-text);
}

.jrv-access-denied-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
