:root {
    --osh-orange: #F36E21;
    --osh-orange-dark: #e86019;
    --osh-navy: #1b2d42;
    --osh-text: #0f172a;
    --osh-muted: #64748b;
    --osh-border: #e2e8f0;
    --osh-surface: #f8fafc;
}

*, *::before, *::after { box-sizing: border-box; }

body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--osh-text);
}

.auth-shell {
    display: flex;
    min-height: 100vh;
}

/* ── Left brand panel ── */
.auth-brand {
    width: 42%;
    min-width: 320px;
    max-width: 660px;
    flex-shrink: 0;
    background: var(--osh-navy);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 52px 56px;
    overflow: hidden;
}

.auth-brand__decor {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.07;
    pointer-events: none;
}

.auth-brand__logo {
    position: relative;
    margin-bottom: auto;
}

.auth-brand__logo img {
    height: 40px;
    width: auto;
    display: block;
}

.auth-brand__logo-fallback {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-brand__logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(243, 110, 33, 0.22);
    border: 1px solid rgba(243, 110, 33, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.auth-brand__logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-brand__logo-text .name {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
}

.auth-brand__logo-text .badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--osh-orange);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-brand__main {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
}

.auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(243, 110, 33, 0.14);
    border: 1px solid rgba(243, 110, 33, 0.28);
    margin-bottom: 24px;
    width: fit-content;
}

.auth-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--osh-orange);
}

.auth-pill span {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.04em;
}

.auth-brand h1 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.15;
    margin: 0 0 18px;
}

.auth-brand h1 .accent {
    color: rgba(255, 255, 255, 0.82);
}

.auth-brand__lead {
    font-size: 15px;
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 40px;
    max-width: 440px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-features__icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(243, 110, 33, 0.14);
    border: 1px solid rgba(243, 110, 33, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.82);
}

.auth-features__title {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
}

.auth-features__desc {
    font-size: 12px;
    color: #475569;
}

.auth-brand__footer {
    position: relative;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 12px;
    color: #64748b;
}

/* ── Right form panel ── */
.auth-form-panel {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 52px 64px;
    position: relative;
}

.auth-form-panel__top {
    position: absolute;
    top: 28px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-form-panel__help {
    font-size: 13px;
    color: #94a3b8;
}

.auth-btn-ghost {
    padding: 6px 14px;
    border-radius: 7px;
    border: 1px solid var(--osh-border);
    font-size: 13px;
    font-weight: 500;
    color: var(--osh-muted);
    background: #fff;
    cursor: pointer;
    font-family: inherit;
}

.auth-form-wrap {
    width: 100%;
    max-width: 400px;
}

.auth-form-wrap h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--osh-text);
    margin: 0 0 6px;
}

.auth-form-wrap .subtitle {
    font-size: 14px;
    color: var(--osh-muted);
    margin: 0 0 28px;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
}

.auth-alert--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-alert--success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.auth-field__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.auth-field__head label {
    margin-bottom: 0;
}

.auth-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--osh-orange);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
    display: flex;
}

.auth-input {
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--osh-border);
    border-radius: 10px;
    padding: 0 44px 0 42px;
    font-size: 14px;
    color: var(--osh-text);
    background: #fff;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input:focus {
    border-color: var(--osh-orange);
    box-shadow: 0 0 0 3px rgba(243, 110, 33, 0.12);
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
}

.auth-mfa-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--osh-surface);
    border: 1px solid var(--osh-border);
    margin-bottom: 20px;
    opacity: 0.65;
}

.auth-mfa-row svg {
    flex-shrink: 0;
    color: var(--osh-orange);
}

.auth-mfa-row span {
    font-size: 13px;
    color: #374151;
    flex: 1;
}

.auth-mfa-row .soon {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
}

.auth-submit {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--osh-orange) 0%, var(--osh-orange-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    box-shadow: 0 4px 18px rgba(243, 110, 33, 0.4);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    font-family: inherit;
}

.auth-submit:hover {
    filter: brightness(1.03);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--osh-border);
}

.auth-divider span {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
}

.auth-sso {
    width: 100%;
    height: 46px;
    border-radius: 10px;
    border: 1.5px solid var(--osh-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    font-family: inherit;
    cursor: not-allowed;
    opacity: 0.7;
}

.auth-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.auth-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
}

.auth-badge-sep {
    width: 1px;
    height: 12px;
    background: var(--osh-border);
}

.auth-copyright {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    color: #cbd5e1;
}

@media (max-width: 960px) {
    .auth-brand {
        display: none;
    }

    .auth-form-panel {
        padding: 32px 24px 64px;
    }
}

.auth-mfa-steps {
    margin: 0 0 1rem 1.1rem;
    padding: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #374151;
}

.auth-mfa-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 1.25rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.auth-mfa-qr img {
    display: block;
    border-radius: 8px;
}

.auth-mfa-qr__hint {
    margin: 0.75rem 0 0;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

.auth-mfa-manual {
    margin-bottom: 1rem;
    font-size: 13px;
    color: #4b5563;
}

.auth-mfa-manual code.auth-token {
    word-break: break-all;
    font-size: 13px;
}

.auth-mfa-steps code.auth-token {
    word-break: break-all;
    font-size: 13px;
}

.auth-mfa-uri {
    margin-bottom: 1rem;
    font-size: 12px;
}

.auth-mfa-uri code {
    display: block;
    word-break: break-all;
    margin-top: 0.5rem;
}

.auth-form-wrap--wide {
    max-width: 480px;
}

/* ---------- OSH Helpdesk: abas Cliente / Agente ---------- */
.desk-auth-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 22px;
    gap: 4px;
}

.desk-auth-tabs__tab {
    flex: 1;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.desk-auth-tabs__tab.is-active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.desk-auth-panel {
    display: none;
}

.desk-auth-panel.is-active {
    display: block;
}
