/* Auth — refined split layout */

:root {
    --auth-bg: #08080a;
    --auth-surface: rgba(255, 255, 255, 0.04);
    --auth-border: rgba(255, 255, 255, 0.08);
    --auth-red: #d4001a;
    --auth-red-hover: #b80016;
    --auth-accent: #f1416c;
    --auth-text: #f4f4f5;
    --auth-muted: #9ca3af;
    --auth-muted-soft: #6b7280;
    --auth-input-bg: #fafafa;
    --auth-input-text: #111827;
    --auth-divider: rgba(255, 255, 255, 0.1);
    --auth-max-form: 400px;
    --auth-max-form-wide: 500px;
    --auth-radius: 12px;
    --auth-radius-sm: 10px;
    --auth-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body { margin: 0; padding: 0; }

.auth-body {
    min-height: 100vh;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: "DM Sans", Montserrat, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.auth-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.auth-grain {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.auth-top {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    padding: 1.5rem 2.25rem;
}

.auth-top__logo {
    display: inline-flex;
    align-items: center;
    opacity: 0.92;
    transition: opacity 0.2s var(--auth-ease);
}

.auth-top__logo:hover { opacity: 1; }

.auth-top__logo img {
    display: block;
    height: 26px;
    width: auto;
    max-width: 150px;
    filter: brightness(0) invert(1);
}

.auth-shell {
    position: relative;
    z-index: 1;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(340px, 44%) 1fr;
    min-height: 100vh;
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 2rem 3rem 3.25rem;
}

.auth-content {
    width: 100%;
    max-width: var(--auth-max-form);
    animation: authFadeUp 0.55s var(--auth-ease) both;
}

@keyframes authFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1.1rem;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--auth-muted);
}

.auth-headline {
    margin: 0 0 0.75rem;
    font-family: Montserrat, "DM Sans", sans-serif;
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #fff;
}

.auth-lead {
    margin: 0 0 1.75rem;
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--auth-muted);
    max-width: 36ch;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: var(--auth-radius-sm);
    font-size: 0.88rem;
    line-height: 1.45;
}

.auth-alert svg { flex-shrink: 0; margin-top: 0.1rem; }

.auth-alert--error {
    background: rgba(212, 0, 26, 0.12);
    border: 1px solid rgba(212, 0, 26, 0.28);
    color: #fecaca;
}

.auth-form { width: 100%; }

.auth-form--register { max-width: var(--auth-max-form-wide); }

.auth-panel--register {
    justify-content: flex-start;
    padding-top: 4.75rem;
    padding-bottom: 2.5rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.auth-panel--register .auth-content {
    max-width: var(--auth-max-form-wide);
}

.auth-panel--register .auth-headline {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.auth-panel--register .auth-lead { max-width: 42ch; }

.auth-panel--register .auth-divider,
.auth-panel--register .auth-links { max-width: var(--auth-max-form-wide); }

.auth-section {
    margin-bottom: 1.35rem;
}

.auth-section--panel { margin-bottom: 1rem; }

.auth-section__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.auth-section__head--compact { margin-bottom: 0.75rem; }

.auth-section__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: rgba(241, 65, 108, 0.15);
    border: 1px solid rgba(241, 65, 108, 0.35);
    font-size: 0.72rem;
    font-weight: 700;
    color: #fda4af;
    flex-shrink: 0;
}

.auth-section__title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #d1d5db;
}

.auth-segment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.auth-segment__opt { cursor: pointer; }

.auth-segment__opt input { display: none; }

.auth-segment__opt span {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.85rem 0.75rem;
    border-radius: var(--auth-radius-sm);
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    transition: border-color 0.2s var(--auth-ease), background 0.2s var(--auth-ease), transform 0.2s var(--auth-ease);
}

.auth-segment__opt span strong {
    font-size: 0.86rem;
    font-weight: 600;
    color: #e5e7eb;
}

.auth-segment__opt span small {
    font-size: 0.72rem;
    color: var(--auth-muted-soft);
}

.auth-segment__opt:hover span {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.auth-segment__opt input:checked + span {
    border-color: rgba(241, 65, 108, 0.45);
    background: rgba(241, 65, 108, 0.1);
    box-shadow: 0 0 0 1px rgba(241, 65, 108, 0.15);
}

.auth-segment__opt input:checked + span strong { color: #fff; }

.auth-type-panel {
    display: none;
    padding: 1.1rem;
    border-radius: var(--auth-radius);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--auth-border);
    animation: authPanelIn 0.3s var(--auth-ease) both;
}

.auth-type-panel.is-visible { display: block; }

@keyframes authPanelIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.auth-field {
    position: relative;
    margin-bottom: 0.8rem;
}

.auth-field__label {
    display: block;
    margin-bottom: 0.38rem;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #b4b8c0;
}

.auth-field__hint {
    margin: 0.45rem 0 0;
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--auth-muted-soft, #9ca3af);
}

.auth-field--contract {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-field--contract code {
    font-size: 0.85em;
    color: #e5e7eb;
}

.auth-contract-status {
    margin: 0.5rem 0 0;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    font-size: 0.76rem;
    line-height: 1.45;
}

.auth-contract-status.is-checking {
    color: var(--auth-muted-soft, #9ca3af);
    background: rgba(255, 255, 255, 0.04);
}

.auth-contract-status.is-ok {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.auth-contract-status.is-error {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.22);
}

.auth-field__input.is-contract-invalid {
    border-color: rgba(239, 68, 68, 0.55) !important;
}

.auth-field__input.is-contract-valid {
    border-color: rgba(34, 197, 94, 0.45) !important;
}

.auth-optional {
    font-weight: 500;
    color: var(--auth-muted-soft);
    text-transform: none;
    letter-spacing: 0;
}

.auth-field__input {
    width: 100%;
    padding: 0.82rem 0.95rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--auth-radius-sm);
    background: var(--auth-input-bg);
    color: var(--auth-input-text);
    font: inherit;
    font-size: 0.94rem;
    line-height: 1.3;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s var(--auth-ease), box-shadow 0.2s var(--auth-ease);
}

.auth-field__input::placeholder { color: #9ca3af; }

.auth-field__input:hover {
    border-color: rgba(0, 0, 0, 0.1);
}

.auth-field__input:focus {
    border-color: rgba(241, 65, 108, 0.5);
    box-shadow: 0 0 0 3px rgba(241, 65, 108, 0.15);
}

.auth-field--password .auth-field__input { padding-right: 2.85rem; }

.auth-field__select {
    appearance: none;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, #6b7280 50%),
        linear-gradient(135deg, #6b7280 50%, transparent 50%);
    background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 10px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2rem;
}

.auth-field__toggle {
    position: absolute;
    right: 0.5rem;
    bottom: 0.42rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.auth-field__toggle:hover {
    color: #374151;
    background: rgba(0, 0, 0, 0.04);
}

.auth-field__toggle[aria-pressed="true"] .auth-icon-eye { display: none; }
.auth-field__toggle[aria-pressed="true"] .auth-icon-eye-off { display: block !important; }

.auth-hint {
    margin: -0.25rem 0 0;
    font-size: 0.74rem;
    color: var(--auth-muted-soft);
    line-height: 1.45;
}

.auth-cnp-hint.is-error { color: #fca5a5; }
.auth-cnp-hint:not(.is-error):not([hidden]) { color: #86efac; }

.auth-cnp-summary {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--auth-radius-sm);
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.auth-cnp-summary__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

.auth-cnp-summary__text {
    margin: 0.15rem 0 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #bbf7d0;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.95rem 1.25rem;
    border: 0;
    border-radius: var(--auth-radius-sm);
    background: linear-gradient(135deg, var(--auth-red) 0%, #a80016 100%);
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(212, 0, 26, 0.35);
    transition: transform 0.2s var(--auth-ease), box-shadow 0.2s var(--auth-ease), filter 0.2s;
}

.auth-submit:hover {
    filter: brightness(1.06);
    box-shadow: 0 6px 28px rgba(212, 0, 26, 0.42);
    transform: translateY(-1px);
}

.auth-submit:active { transform: translateY(0); }

.auth-submit svg {
    opacity: 0.9;
    transition: transform 0.2s var(--auth-ease);
}

.auth-submit:hover svg { transform: translateX(2px); }

.auth-divider {
    width: 100%;
    margin: 1.65rem 0 1.25rem;
    border: 0;
    border-top: 1px solid var(--auth-divider);
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.auth-links__item {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.45rem 0;
    color: var(--auth-muted);
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s var(--auth-ease);
}

.auth-links__item:hover { color: #fff; }

.auth-links__item--accent { color: #e5e7eb; }
.auth-links__item--accent:hover { color: #fda4af; }

.auth-links__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    color: #9ca3af;
    flex-shrink: 0;
    transition: border-color 0.2s, color 0.2s;
}

.auth-links__item:hover .auth-links__icon {
    border-color: rgba(255, 255, 255, 0.15);
    color: #e5e7eb;
}

/* Tab switcher */
.auth-switch {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    margin-bottom: 1.65rem;
    padding: 0.3rem;
    border-radius: 999px;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
}

.auth-switch__tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.62rem 0.85rem;
    border-radius: 999px;
    color: var(--auth-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s var(--auth-ease);
}

.auth-switch__tab:hover { color: #e5e7eb; }

.auth-switch__tab.is-active { color: #fff; }

.auth-switch__indicator {
    position: absolute;
    top: 0.3rem;
    bottom: 0.3rem;
    left: 0.3rem;
    width: calc(50% - 0.3rem);
    border-radius: 999px;
    background: rgba(241, 65, 108, 0.18);
    border: 1px solid rgba(241, 65, 108, 0.35);
    box-shadow: 0 4px 16px rgba(241, 65, 108, 0.12);
    transition: transform 0.35s var(--auth-ease);
    pointer-events: none;
}

.auth-switch__indicator[data-active="register"] {
    transform: translateX(100%);
}

/* Login perks */
.auth-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.auth-perks li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    font-size: 0.76rem;
    font-weight: 500;
    color: #d1d5db;
}

.auth-perks__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--auth-accent);
    box-shadow: 0 0 8px rgba(241, 65, 108, 0.55);
}

.auth-form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.15rem 0 0.85rem;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--auth-muted);
    user-select: none;
}

.auth-check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--auth-red);
    cursor: pointer;
}

.auth-form__link {
    font-size: 0.82rem;
    font-weight: 500;
    color: #fda4af;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-form__link:hover { color: #fff; }

.auth-footnote {
    margin: 1.35rem 0 0;
    font-size: 0.86rem;
    color: var(--auth-muted);
}

.auth-footnote a {
    color: #e5e7eb;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-footnote a:hover { color: #fda4af; }

.auth-field__input.is-invalid {
    border-color: rgba(212, 0, 26, 0.55);
    box-shadow: 0 0 0 3px rgba(212, 0, 26, 0.12);
}

/* Register wizard */
.auth-content--wizard { max-width: var(--auth-max-form-wide); }

.auth-wizard__head { margin-bottom: 1.35rem; }

.auth-wizard__bar {
    height: 4px;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.auth-wizard__bar-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--auth-red), var(--auth-accent));
    transition: width 0.4s var(--auth-ease);
}

.auth-wizard__steps {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-wizard__step {
    flex: 1;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--auth-muted-soft);
    transition: color 0.25s;
}

.auth-wizard__step.is-active { color: #fda4af; }
.auth-wizard__step.is-done { color: #9ca3af; }

.auth-wizard__panel {
    display: none;
    animation: authPanelIn 0.35s var(--auth-ease) both;
}

.auth-wizard__panel.is-active { display: block; }

.auth-wizard__panel-title {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #e5e7eb;
}

.auth-wizard__nav {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.1rem;
}

.auth-wizard__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.78rem 1.1rem;
    border-radius: var(--auth-radius-sm);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.auth-wizard__btn--ghost {
    border: 1px solid var(--auth-border);
    background: transparent;
    color: var(--auth-muted);
}

.auth-wizard__btn--ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
    background: var(--auth-surface);
}

.auth-wizard__btn--next {
    margin-left: auto;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.auth-wizard__btn--next:hover { background: rgba(255, 255, 255, 0.12); }

.auth-wizard__btn[hidden],
.auth-wizard__submit[hidden] {
    display: none !important;
}

.auth-wizard__submit {
    margin-left: auto;
    width: auto;
    min-width: 11rem;
    margin-top: 0;
}

/* Password meter */
.auth-meter {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: -0.35rem 0 0.55rem;
}

.auth-meter__track {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.auth-meter__fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #ef4444;
    transition: width 0.25s, background 0.25s;
}

.auth-meter__fill[data-level="mid"] { background: #f59e0b; }
.auth-meter__fill[data-level="strong"] { background: #22c55e; }

.auth-meter__label {
    font-size: 0.72rem;
    color: var(--auth-muted-soft);
    white-space: nowrap;
}

.auth-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 0.75rem;
    margin: 0 0 0.5rem;
    padding: 0;
    list-style: none;
    font-size: 0.74rem;
    color: var(--auth-muted-soft);
}

.auth-checklist li {
    position: relative;
    padding-left: 1.1rem;
}

.auth-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s;
}

.auth-checklist li.is-ok {
    color: #86efac;
}

.auth-checklist li.is-ok::before {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

/* Hero */
.auth-hero {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.auth-hero__carousel {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.auth-hero__slide {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(160deg, rgba(8, 8, 10, 0.15) 0%, rgba(8, 8, 10, 0.45) 100%),
        var(--auth-slide-image, none);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.9s ease, transform 7s linear;
    clip-path: ellipse(94% 100% at 100% 50%);
    will-change: opacity, transform;
}

.auth-hero__slide.is-active {
    opacity: 1;
    transform: scale(1.02);
    z-index: 1;
}


.auth-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, transparent 45%);
}

.auth-hero__caption {
    position: absolute;
    right: 2.25rem;
    bottom: 2.75rem;
    left: auto;
    z-index: 3;
    max-width: min(32ch, 42vw);
    padding: 1.15rem 1.25rem;
    border-radius: var(--auth-radius);
    background: rgba(8, 8, 10, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.auth-hero__tag {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.auth-hero__quote {
    margin: 0;
    font-family: Montserrat, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: #fff;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.auth-hero__quote.is-changing {
    opacity: 0;
    transform: translateY(6px);
}

.auth-hero__dots {
    position: absolute;
    right: 2.25rem;
    bottom: 1.15rem;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.auth-hero__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.auth-hero__dot:hover {
    background: rgba(255, 255, 255, 0.65);
    transform: scale(1.1);
}

.auth-hero__dot.is-active {
    width: 22px;
    background: var(--auth-red, #E0002F);
}

.auth-hero__sparkle {
    position: absolute;
    width: 22px;
    height: 22px;
    opacity: 0.75;
    pointer-events: none;
    z-index: 2;
}

.auth-hero__sparkle::before,
.auth-hero__sparkle::after {
    content: "";
    position: absolute;
    background: #fff;
    border-radius: 1px;
}

.auth-hero__sparkle::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.auth-hero__sparkle::after {
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.auth-hero__sparkle--1 {
    top: 16%;
    right: 20%;
    transform: rotate(15deg);
}

.auth-hero__sparkle--2 {
    top: 28%;
    right: 10%;
    width: 14px;
    height: 14px;
    opacity: 0.45;
    transform: rotate(-10deg);
}

@media (min-width: 1025px) {
    .auth-shell:has(.auth-panel--register) {
        grid-template-columns: minmax(400px, 50%) 1fr;
    }
}

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

    .auth-hero {
        order: -1;
        min-height: 200px;
    }

    .auth-hero__slide {
        clip-path: ellipse(120% 100% at 50% 0%);
    }

    .auth-hero__caption {
        left: 1.25rem;
        right: 1.25rem;
        bottom: 2.75rem;
        max-width: none;
    }

    .auth-hero__dots {
        right: 1.25rem;
        bottom: 0.85rem;
    }

    .auth-hero__quote { font-size: 1rem; }

    .auth-panel {
        padding: 1.75rem 1.35rem 2.5rem;
        justify-content: flex-start;
    }

    .auth-top { padding: 1rem 1.25rem; }
}

@media (max-width: 560px) {
    .auth-panel {
        padding: 1.35rem 1rem 2rem;
    }

    .auth-form input,
    .auth-form select,
    .auth-form textarea {
        font-size: 16px;
    }

    .auth-field-row,
    .auth-segment,
    .auth-checklist { grid-template-columns: 1fr; }

    .auth-headline { font-size: 1.7rem; }

    .auth-hero { min-height: 170px; }

    .auth-wizard__nav {
        flex-wrap: wrap;
    }

    .auth-wizard__btn--next,
    .auth-wizard__submit {
        width: 100%;
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-content,
    .auth-type-panel,
    .auth-submit svg { animation: none; transition: none; }
}

/* GDPR — consimțământ register */
.auth-field__hint--gdpr {
    margin-top: 0.45rem;
    font-size: 0.72rem;
    line-height: 1.45;
}

.auth-field__hint--gdpr a {
    color: #fda4af;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-consent {
    margin-top: 1rem;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 0.75rem;
}

.auth-consent__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: start;
    font-size: 0.76rem;
    line-height: 1.5;
    color: #d1d5db;
    cursor: pointer;
}

.auth-consent__item input {
    margin-top: 0.15rem;
    width: 1rem;
    height: 1rem;
    accent-color: var(--auth-accent, #e0002f);
}

.auth-consent__item a {
    color: #fda4af;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-consent__item--required span strong {
    color: #f3f4f6;
}

.auth-footnote__sep {
    margin: 0 0.35rem;
    opacity: 0.45;
}

/* Pagini legale */
.auth-panel--legal {
    max-width: 42rem;
}

.auth-hero--legal .auth-hero__carousel {
    opacity: 0.85;
}

.auth-legal__back {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: #9ca3af;
    text-decoration: none;
}

.auth-legal__back:hover {
    color: #fda4af;
}

.auth-legal__head {
    margin-bottom: 1.25rem;
}

.auth-legal__kicker {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fda4af;
}

.auth-legal__title {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.2;
    color: #f9fafb;
}

.auth-legal__meta {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
    color: #9ca3af;
}

.auth-legal__body {
    font-size: 0.86rem;
    line-height: 1.65;
    color: #d1d5db;
}

.auth-legal__body section {
    margin-bottom: 1.35rem;
}

.auth-legal__body h2 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    color: #f3f4f6;
}

.auth-legal__body p,
.auth-legal__body ul {
    margin: 0 0 0.65rem;
}

.auth-legal__body ul {
    padding-left: 1.15rem;
}

.auth-legal__body a {
    color: #fda4af;
}

.auth-legal__highlight {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(224, 0, 47, 0.08);
    border: 1px solid rgba(253, 164, 175, 0.18);
}

.auth-legal__foot {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.auth-legal__foot a {
    color: #fda4af;
}

/* --------------------------------------------------------------------------
   Login Free-style — split desktop + stacked mobile (subscribe.free.fr)
   -------------------------------------------------------------------------- */

.auth-body--free {
    min-height: 100vh;
    min-height: 100dvh;
    background: #0a0a0a;
    color: #f4f4f5;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

.auth-page--free {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

.auth-free-top {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    padding:
        max(1.25rem, env(safe-area-inset-top))
        max(1.5rem, env(safe-area-inset-right))
        0
        max(1.5rem, env(safe-area-inset-left));
}

.auth-free-top__logo {
    display: inline-flex;
    align-items: center;
    opacity: 0.95;
    transition: opacity 0.2s;
}

.auth-free-top__logo:hover { opacity: 1; }

.auth-free-top__logo img {
    display: block;
    height: 28px;
    width: auto;
    max-width: 140px;
}

.auth-free-shell {
    display: grid;
    grid-template-columns: minmax(320px, 42%) 1fr;
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-free-panel {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        max(5rem, calc(env(safe-area-inset-top) + 3.5rem))
        clamp(1.5rem, 4vw, 3rem)
        max(2.5rem, env(safe-area-inset-bottom))
        clamp(1.75rem, 5vw, 3.5rem);
    background: #0a0a0a;
}

.auth-free-content {
    width: 100%;
    max-width: 400px;
    animation: authFreeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes authFreeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-free__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

.auth-free__lead {
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #9ca3af;
}

.auth-free-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 0.85rem 0.95rem;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.auth-free-alert svg { flex-shrink: 0; margin-top: 0.05rem; }

.auth-free-alert--error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fecaca;
}

.auth-free-form { width: 100%; }

.auth-free-field {
    position: relative;
    margin-bottom: 0.85rem;
}

.auth-free-field__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-free-field__input {
    width: 100%;
    min-height: 50px;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: 16px;
    line-height: 1.3;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.auth-free-field__input::placeholder { color: #9ca3af; }

.auth-free-field__input:focus {
    box-shadow: 0 0 0 3px rgba(224, 0, 47, 0.25);
}

.auth-free-field--icon-end .auth-free-field__input {
    padding-right: 3rem;
}

.auth-free-field__inline-btn {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    touch-action: manipulation;
}

.auth-free-field__inline-btn:hover,
.auth-free-field__inline-btn:focus-visible {
    color: #4b5563;
    background: rgba(0, 0, 0, 0.05);
    outline: none;
}

.auth-free-field__inline-btn[aria-pressed="true"] .auth-icon-eye { display: none; }
.auth-free-field__inline-btn[aria-pressed="true"] .auth-icon-eye-off { display: block !important; }

.auth-free-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: 0.5rem;
    padding: 0.9rem 1.25rem;
    border: 0;
    border-radius: 10px;
    background: #E0002F;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.15s, transform 0.1s;
}

.auth-free-submit:hover {
    background: #c40028;
}

.auth-free-submit:active {
    transform: scale(0.99);
}

.auth-free-divider {
    margin: 1.35rem 0 1rem;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-free-links {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.auth-free-links__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 44px;
    padding: 0.3rem 0;
    color: #9ca3af;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}

.auth-free-links__item:hover,
.auth-free-links__item:focus-visible {
    color: #fff;
    outline: none;
}

.auth-free-links__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    color: #6b7280;
}

.auth-free-links__item:hover .auth-free-links__icon {
    color: #E0002F;
}

.auth-free-legal {
    margin: 1.35rem 0 0;
    font-size: 0.78rem;
    color: #6b7280;
}

.auth-free-legal a {
    color: #9ca3af;
    text-decoration: none;
}

.auth-free-legal a:hover {
    color: #fff;
}

.auth-free-legal span {
    margin: 0 0.35rem;
}

/* Hero — curbă stânga pe desktop (ca Free.fr) */
.auth-free-hero {
    position: relative;
    min-height: 100%;
    background: #0a0a0a;
    overflow: hidden;
}

.auth-free-hero .auth-hero__carousel {
    position: absolute;
    inset: 0;
}

.auth-free-hero .auth-hero__slide {
    clip-path: ellipse(94% 100% at 100% 50%);
}

.auth-free-hero .auth-hero__overlay {
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.35) 0%, transparent 35%);
}

.auth-free-hero .auth-hero__caption,
.auth-free-hero .auth-hero__dots {
    display: none;
}

.auth-free-dialog {
    width: min(92vw, 400px);
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    overflow: visible;
}

.auth-free-dialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.auth-free-dialog__panel {
    position: relative;
    padding: 1.35rem 1.25rem 1.25rem;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.auth-free-dialog__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}

.auth-free-dialog__close:hover {
    background: #f3f4f6;
    color: #111827;
}

.auth-free-dialog__title {
    margin: 0 2rem 0.85rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.auth-free-dialog__list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #4b5563;
}

.auth-free-dialog__list li + li {
    margin-top: 0.65rem;
}

.auth-free-dialog__list a {
    color: #E0002F;
    font-weight: 600;
    text-decoration: none;
}

/* Tablet + mobil — imagine sus, formular jos */
@media (max-width: 1024px) {
    .auth-free-shell {
        grid-template-columns: 1fr;
    }

    .auth-free-hero {
        order: -1;
        min-height: clamp(180px, 32vw, 260px);
    }

    .auth-free-hero .auth-hero__slide {
        clip-path: ellipse(120% 100% at 50% 0%);
    }

    .auth-free-hero .auth-hero__overlay {
        background: linear-gradient(0deg, rgba(10, 10, 10, 0.65) 0%, transparent 50%);
    }

    .auth-free-panel {
        align-items: flex-start;
        padding-top: 1.25rem;
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    .auth-free__title {
        font-size: 1.35rem;
    }
}

@media (max-width: 560px) {
    .auth-free-top {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .auth-free-panel {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .auth-free-hero {
        min-height: 200px;
    }

    .auth-free__lead {
        margin-bottom: 1.25rem;
        font-size: 0.86rem;
    }
}

@media (min-width: 1025px) {
    .auth-free__title {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

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

    .auth-free-submit:active {
        transform: none;
    }

    .auth-free-hero .auth-hero__slide.is-active {
        transform: none;
    }
}

