/* EFOR Auth — modern split portal */
:root {
    --auth-ink: #121820;
    --auth-muted: #667280;
    --auth-line: #e7ecf1;
    --auth-panel: #ffffff;
    --auth-soft: #f6f8fa;
    --auth-red: #d30e15;
    --auth-red-dark: #b00c12;
    --auth-blue: #0158a2;
}

.efor-auth-shell {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", system-ui, sans-serif;
    color: var(--auth-ink);
    background: #0d1520;
}

.efor-auth-frame {
    min-height: 100vh;
    height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 480px);
    overflow: hidden;
}

.efor-auth-frame--wide {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 480px);
}

.efor-auth-visual {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 0;
    color: #fff;
}

.efor-auth-visual-media {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1);
    transform-origin: center center;
    will-change: transform;
    animation: authHeroBreath 13s ease-in-out infinite;
}

.efor-auth-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgb(0 0 0 / 51%) 0%, rgb(0 0 0 / 16%) 25%, rgb(0 0 0 / 16%) 100%),
        linear-gradient(to top, rgb(0 0 0 / 71%) 0%, transparent 42%);
}

.efor-auth-visual-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    padding: clamp(40px, 8vh, 80px) clamp(32px, 5vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
}

.efor-auth-visual-kicker {
    margin: 0 0 14px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

.efor-auth-visual-title {
    margin: 0 0 14px;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.02em;
}

.efor-auth-visual-text {
    margin: 0 0 28px;
    font-size: 1.02rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
    max-width: 38ch;
}

.efor-auth-visual-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.efor-auth-visual-points li {
    position: relative;
    padding-left: 22px;
    font-size: .92rem;
    color: rgba(255, 255, 255, .88);
}

.efor-auth-visual-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--auth-red);
    box-shadow: 0 0 0 3px rgba(211, 14, 21, .25);
}

.efor-auth-panel {
    background: var(--auth-panel);
    display: flex;
    align-items: stretch;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.efor-auth-panel-inner {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: clamp(28px, 5vh, 56px) clamp(24px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.efor-auth-frame--wide .efor-auth-panel-inner {
    max-width: 460px;
}

.efor-auth-brand {
    margin-bottom: 28px;
}

.efor-auth-brand-link {
    display: inline-block;
}

.efor-auth-brand-link img {
    display: block;
    max-height: 56px;
    width: auto;
    max-width: min(360px, 88vw);
    object-fit: contain;
}

.efor-auth-brand-sub {
    margin: 14px 0 0;
    color: var(--auth-muted);
    font-size: .95rem;
    font-weight: 500;
}

.efor-auth-h1 {
    margin: 0 0 8px;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.efor-auth-lead {
    margin: 0 0 28px;
    color: var(--auth-muted);
    font-size: .95rem;
    line-height: 1.55;
}

.efor-auth-actions {
    display: grid;
    gap: 12px;
}

.efor-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none !important;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.efor-auth-btn:hover {
    transform: translateY(-1px);
}

.efor-auth-btn-primary {
    background: var(--auth-red);
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(211, 14, 21, .22);
}

.efor-auth-btn-primary:hover {
    background: var(--auth-red-dark);
    color: #fff !important;
}

.efor-auth-btn-secondary {
    background: var(--auth-ink);
    color: #fff !important;
}

.efor-auth-btn-secondary:hover {
    background: #1d2733;
    color: #fff !important;
}

.efor-auth-btn-ghost {
    background: var(--auth-soft);
    border-color: var(--auth-line);
    color: var(--auth-ink) !important;
}

.efor-auth-btn-ghost:hover {
    border-color: #c9d3de;
    color: var(--auth-ink) !important;
}

.efor-auth-btn-soft {
    background: rgba(1, 88, 162, .08);
    border-color: rgba(1, 88, 162, .18);
    color: var(--auth-blue) !important;
}

.efor-auth-btn-soft:hover {
    background: rgba(1, 88, 162, .12);
    color: var(--auth-blue) !important;
}

.efor-auth-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.efor-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--auth-muted);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.efor-auth-divider::before,
.efor-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-line);
}

.efor-auth-meta {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.efor-auth-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--auth-soft);
    border: 1px solid var(--auth-line);
}

.efor-auth-meta-item strong {
    display: block;
    font-size: .88rem;
    margin-bottom: 2px;
}

.efor-auth-meta-item span {
    font-size: .8rem;
    color: var(--auth-muted);
    line-height: 1.4;
}

.efor-auth-meta-dot {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--auth-red);
    flex-shrink: 0;
}

.efor-auth-form .form-label {
    font-size: .82rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
}

.efor-auth-form .form-control {
    min-height: 46px;
    border-radius: 11px;
    border-color: #d7dee7;
    padding: .7rem .95rem;
    font-size: .95rem;
    background: #fff;
}

.efor-auth-form .form-control:focus {
    border-color: rgba(211, 14, 21, .45);
    box-shadow: 0 0 0 3px rgba(211, 14, 21, .12);
}

.efor-auth-form .form-check-label {
    color: var(--auth-muted);
    font-size: .9rem;
}

.efor-auth-links {
    margin-top: 18px;
    text-align: center;
    font-size: .88rem;
    color: var(--auth-muted);
}

.efor-auth-links a {
    color: var(--auth-blue) !important;
    font-weight: 700;
    text-decoration: none;
}

.efor-auth-links a:hover {
    color: var(--auth-red) !important;
}

.efor-auth-note {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--auth-soft);
    color: var(--auth-muted);
    font-size: .82rem;
    line-height: 1.45;
}

.efor-auth-register-cta {
    margin-top: 22px;
    padding: 18px 16px;
    border-radius: 14px;
    border: 1px solid var(--auth-line);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    text-align: center;
}

.efor-auth-register-cta__label {
    margin: 0 0 12px;
    font-size: .95rem;
    font-weight: 800;
    color: var(--auth-ink);
    letter-spacing: -.01em;
}

.efor-auth-register-cta__btn {
    width: 100%;
    box-shadow: 0 8px 20px rgba(18, 24, 32, .12);
}

.efor-auth-register-cta__hint {
    margin: 12px 0 0;
    font-size: .8rem;
    line-height: 1.45;
    color: var(--auth-muted);
}

.efor-auth-foot {
    margin-top: auto;
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .78rem;
    color: var(--auth-muted);
}

.efor-auth-foot a {
    color: var(--auth-muted) !important;
    text-decoration: none;
}

.efor-auth-foot a:hover {
    color: var(--auth-ink) !important;
}

.efor-auth-section-label {
    margin: 18px 0 10px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--auth-muted);
}

@keyframes authHeroBreath {
    0% { transform: scale(1); }
    42% { transform: scale(1.18); }
    58% { transform: scale(1.18); }
    100% { transform: scale(1); }
}

@media (max-width: 991.98px) {
    .efor-auth-frame,
    .efor-auth-frame--wide {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .efor-auth-visual {
        min-height: 240px;
        max-height: 32vh;
        height: auto;
    }

    .efor-auth-visual-content {
        padding: 28px 24px;
        justify-content: flex-end;
    }

    .efor-auth-visual-title {
        font-size: 1.55rem;
    }

    .efor-auth-visual-text,
    .efor-auth-visual-points {
        display: none;
    }

    .efor-auth-panel {
        min-height: auto;
        height: auto;
        overflow: visible;
    }
}

@media (prefers-reduced-motion: reduce) {
    .efor-auth-visual-media {
        animation: none;
    }

    .efor-auth-btn:hover {
        transform: none;
    }
}
