:root {
    --es-auth-bg: #f5f8fc;
    --es-auth-surface: rgba(255, 255, 255, 0.94);
    --es-auth-border: rgba(148, 163, 184, 0.22);
    --es-auth-text: #0f172a;
    --es-auth-muted: #64748b;
    --es-auth-soft: #f8fafc;
    --es-auth-primary: #2563eb;
    --es-auth-primary-dark: #1e40af;
    --es-auth-danger: #dc2626;
    --es-auth-radius-xl: 32px;
    --es-auth-radius-lg: 22px;
    --es-auth-shadow: 0 30px 90px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--es-auth-text);
    background: var(--es-auth-bg);
}

.es-auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 2vw, 2rem);
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 12%, rgba(37, 99, 235, 0.11), transparent 30%),
        radial-gradient(circle at 92% 88%, rgba(14, 165, 233, 0.1), transparent 28%),
        linear-gradient(135deg, #f8fafc 0%, #eef5ff 48%, #f6f9fc 100%);
}

.es-auth-layout {
    position: relative;
    width: min(1320px, 100%);
    min-height: min(760px, calc(100vh - 2rem));
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 38px;
    overflow: hidden;
    box-shadow: var(--es-auth-shadow);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px);
}

.es-auth-showcase {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.6rem;
    padding: clamp(1.4rem, 3vw, 3rem);
    overflow: hidden;
    color: #0f172a;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92)),
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 34%);
}

.es-auth-showcase::before {
    content: "";
    position: absolute;
    inset: 1rem;
    z-index: -1;
    border-radius: 30px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background:
        linear-gradient(rgba(37, 99, 235, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.055) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}

.es-auth-showcase__glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.8;
    pointer-events: none;
}

.es-auth-showcase__glow--one {
    width: 280px;
    height: 280px;
    top: -90px;
    right: 7%;
    background: rgba(37, 99, 235, 0.13);
}

.es-auth-showcase__glow--two {
    width: 220px;
    height: 220px;
    bottom: 8%;
    left: -80px;
    background: rgba(14, 165, 233, 0.11);
}

.es-auth-showcase__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.es-auth-brand,
.es-auth-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
}

.es-auth-brand__logo {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    font-size: 1.15rem;
    font-weight: 900;
    color: #1d4ed8;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.12);
}

.es-auth-brand__wordmark {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.es-auth-brand__badge,
.es-auth-eyebrow,
.es-auth-panel__tag,
.auth-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.42rem 0.8rem;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
}

.es-auth-brand__badge,
.es-auth-eyebrow {
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.es-auth-product-visual {
    position: relative;
    z-index: 1;
    width: min(520px, 92%);
    min-height: 280px;
    margin: auto 0;
}

.es-auth-product-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.11);
    backdrop-filter: blur(18px);
}

.es-auth-product-card--main {
    width: 100%;
    height: 245px;
    border-radius: 30px;
    overflow: hidden;
}

.es-auth-product-card__header {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.es-auth-product-card__header span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.22);
}

.es-auth-product-card__content {
    padding: 1.2rem;
}

.es-auth-product-line {
    width: 54%;
    height: 10px;
    border-radius: 999px;
    margin-top: 0.8rem;
    background: rgba(148, 163, 184, 0.18);
}

.es-auth-product-line--wide {
    width: 76%;
    margin-top: 0;
    background: rgba(37, 99, 235, 0.18);
}

.es-auth-product-bars {
    height: 105px;
    display: flex;
    align-items: end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.es-auth-product-bars span {
    flex: 1;
    min-width: 34px;
    border-radius: 999px 999px 10px 10px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.52), rgba(147, 197, 253, 0.24));
}

.es-auth-product-card--floating {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 150px;
    border-radius: 22px;
    padding: 0.9rem 1rem;
}

.es-auth-product-card--floating i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.09);
    font-size: 1.15rem;
}

.es-auth-product-card--floating span {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
}

.es-auth-product-card--floating strong {
    display: block;
    color: #0f172a;
    margin-top: 0.15rem;
    font-size: 0.98rem;
}

.es-auth-product-card--stock {
    left: -22px;
    bottom: 34px;
}

.es-auth-product-card--finance {
    right: -18px;
    top: 38px;
}

.es-auth-showcase__content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin-top: 0;
}

.es-auth-showcase__title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: 0.08em;
}

.es-auth-showcase__text {
    max-width: 420px;
    margin: 0.85rem 0 0;
    color: #64748b;
    font-size: 0.98rem;
    line-height: 1.6;
}

.es-auth-eyebrow:empty {
    display: none;
}

.es-auth-panel {
    display: grid;
    place-items: center;
    padding: clamp(1rem, 2.4vw, 2rem);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.055), transparent 25%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.es-auth-panel__inner {
    width: min(100%, 460px);
}

.es-auth-mobile-brand {
    display: none;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.es-auth-panel__header {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
}

.es-auth-panel__subtitle:empty {
    display: none;
}

.es-auth-panel__title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.9rem, 3vw, 2.45rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.es-auth-panel__subtitle {
    margin: 0;
    color: var(--es-auth-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.auth-stack,
.auth-form,
.auth-grid,
.auth-meta {
    display: grid;
    gap: 1rem;
}

.auth-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-grid-span-2 {
    grid-column: 1 / -1;
}

.auth-section {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.85), rgba(255, 255, 255, 0.96));
    border-radius: 22px;
    padding: 1rem;
}

.auth-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.auth-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.auth-section__description {
    margin: 0.25rem 0 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.45;
}

.form-group {
    display: grid;
    gap: 0.45rem;
}

.form-group label,
.auth-label-row label {
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 750;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-label-row a {
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-label-row a:hover {
    text-decoration: underline;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap > i {
    position: absolute;
    left: 1rem;
    z-index: 1;
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
}

.auth-input-wrap input,
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 18px;
    background: #fff;
    color: #0f172a;
    padding: 0.95rem 1rem;
    font-size: 0.95rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.auth-input-wrap input {
    padding-left: 2.85rem;
}

.auth-password-wrap input {
    padding-right: 3rem;
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.auth-input-wrap input:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.72);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    background: #ffffff;
}

.form-group input[disabled],
.form-group textarea[disabled],
.form-group select[disabled] {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

.auth-password-toggle {
    position: absolute;
    right: 0.55rem;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 14px;
    color: #64748b;
    background: transparent;
    cursor: pointer;
}

.auth-password-toggle:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.field-hint {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.45;
}

.error-message {
    color: var(--es-auth-danger);
    font-size: 0.78rem;
    line-height: 1.5;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    border-radius: 20px;
    padding: 0.95rem 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-alert i {
    flex: 0 0 auto;
    margin-top: 0.1rem;
    font-size: 1.1rem;
}

.auth-alert strong,
.auth-alert span {
    display: block;
}

.auth-alert--info {
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid rgba(59, 130, 246, 0.18);
}

.auth-alert--warning {
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid rgba(249, 115, 22, 0.18);
}

.auth-alert--error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.auth-check-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: fit-content;
    color: #475569;
    font-size: 0.86rem;
    cursor: pointer;
}

.auth-check-row input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 52px;
    border-radius: 18px;
    border: 0;
    padding: 0.9rem 1.15rem;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease,
        background 0.2s ease;
}

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

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 24px 44px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    color: #0f172a;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.34);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.btn-secondary:hover {
    background: #f8fafc;
}

.btn-ghost {
    color: #334155;
    background: transparent;
    border: 1px dashed rgba(148, 163, 184, 0.48);
}

.auth-social-button img {
    width: 19px;
    height: 19px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(148, 163, 184, 0.32);
}

.es-auth-panel__footer {
    display: grid;
    gap: 1rem;
    margin-top: 1.4rem;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    color: #64748b;
    font-size: 0.9rem;
}

.auth-links a,
.auth-inline-link,
.auth-back-link {
    color: #1d4ed8;
    font-weight: 800;
    text-decoration: none;
}

.auth-links a:hover,
.auth-inline-link:hover,
.auth-back-link:hover {
    text-decoration: underline;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: #64748b;
    font-size: 0.88rem;
}

.auth-footer-copy {
    color: #64748b;
    font-size: 0.88rem;
    text-align: center;
}

.auth-meta__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.25);
    padding-bottom: 0.7rem;
}

.auth-meta__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.auth-meta__label {
    color: #64748b;
    font-size: 0.82rem;
}

.auth-meta__value {
    text-align: right;
    color: #0f172a;
    font-weight: 700;
}

.auth-otp {
    text-align: center;
}

.auth-otp__code input {
    text-align: center;
    letter-spacing: 0.45rem;
    font-size: 1.35rem;
    font-weight: 800;
}

/* Register */
.es-auth-layout--register {
    grid-template-columns: minmax(320px, 0.72fr) minmax(720px, 1.28fr);
    min-height: min(860px, calc(100vh - 2rem));
}

.es-auth-layout--register .es-auth-panel {
    align-items: start;
    overflow-y: auto;
    max-height: min(860px, calc(100vh - 2rem));
    padding: clamp(1.25rem, 2.2vw, 2.25rem);
}

.es-auth-layout--register .es-auth-panel__inner {
    width: min(100%, 780px);
}

.es-auth-layout--register .es-auth-panel__header {
    margin-bottom: 1rem;
}

.es-auth-layout--register .es-auth-panel__title {
    font-size: clamp(1.85rem, 2.4vw, 2.35rem);
}

.es-register-form {
    gap: 1rem;
}

.es-register-section {
    padding: 1.1rem;
}

.es-register-section .auth-grid {
    gap: 0.85rem;
}

.es-register-section .form-group {
    gap: 0.38rem;
}

.es-register-section .auth-input-wrap input,
.es-register-section .form-group input,
.es-register-section .form-group select {
    min-height: 50px;
    border-radius: 16px;
}

.es-register-section .form-group textarea {
    min-height: 88px;
    border-radius: 16px;
}

.es-auth-layout--register .es-auth-product-visual {
    width: min(460px, 92%);
    min-height: 250px;
}

.es-auth-layout--register .es-auth-product-card--main {
    height: 225px;
}

.es-auth-layout--register .es-auth-product-bars {
    height: 90px;
}

.es-auth-layout--register .es-auth-showcase__title {
    font-size: clamp(2rem, 3vw, 3rem);
}

.es-auth-layout--register .es-auth-showcase__text {
    font-size: 0.95rem;
}

/* Simple register */
.es-auth-layout--register-simple {
    grid-template-columns: minmax(320px, 0.82fr) minmax(560px, 1.18fr);
    min-height: min(760px, calc(100vh - 2rem));
}

.es-auth-layout--register-simple .es-auth-panel {
    align-items: center;
    overflow-y: auto;
    max-height: min(760px, calc(100vh - 2rem));
}

.es-auth-layout--register-simple .es-auth-panel__inner {
    width: min(100%, 620px);
}

.es-register-form--simple {
    gap: 0.95rem;
}

.es-register-form--simple .es-register-section {
    padding: 1rem;
}

.es-register-form--simple .auth-section__header {
    margin-bottom: 0.85rem;
}

.es-register-form--simple .auth-grid {
    gap: 0.85rem;
}

.es-register-form--simple .form-group {
    gap: 0.38rem;
}

.es-register-form--simple .auth-input-wrap input,
.es-register-form--simple .form-group input,
.es-register-form--simple .form-group select {
    min-height: 50px;
    border-radius: 16px;
}

/* Optional details collapse */
.auth-details-collapse {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    overflow: hidden;
}

.auth-details-collapse__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.auth-details-collapse__summary::-webkit-details-marker {
    display: none;
}

.auth-details-collapse__summary-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.auth-details-collapse__icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.09);
}

.auth-details-collapse__summary strong {
    display: block;
    color: #0f172a;
    font-size: 0.92rem;
}

.auth-details-collapse__summary small {
    display: block;
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
}

.auth-details-collapse__chevron {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.auth-details-collapse[open] .auth-details-collapse__chevron {
    transform: rotate(180deg);
}

.auth-details-collapse__content {
    padding: 0 1rem 1rem;
}

.auth-section--optional {
    margin: 0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.98));
}

.es-file-field {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px dashed rgba(37, 99, 235, 0.3);
    border-radius: 16px;
    padding: 0.75rem 0.85rem;
    background: rgba(239, 246, 255, 0.62);
}

.es-file-field > i {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.09);
    font-size: 1.05rem;
}

.es-file-field input[type="file"] {
    width: 100%;
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.84rem;
}

.es-file-field input[type="file"]:focus {
    box-shadow: none;
}

.es-file-field input[type="file"]::file-selector-button {
    margin-right: 0.75rem;
    border: 0;
    border-radius: 12px;
    padding: 0.52rem 0.72rem;
    color: #1d4ed8;
    background: #dbeafe;
    font-weight: 800;
    cursor: pointer;
}

.es-file-field input[type="file"]::file-selector-button:hover {
    background: #bfdbfe;
}

/* Responsive */
@media (max-width: 1180px) {
    .es-auth-product-card--stock {
        left: 0;
    }

    .es-auth-product-card--finance {
        right: 0;
    }

    .es-auth-layout--register {
        grid-template-columns: minmax(280px, 0.62fr) minmax(620px, 1.38fr);
    }

    .es-auth-layout--register .es-auth-panel__inner {
        width: min(100%, 720px);
    }
}

@media (max-width: 980px) {
    .es-auth-layout,
    .es-auth-layout--register,
    .es-auth-layout--register-simple {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 30px;
    }

    .es-auth-showcase {
        display: none;
    }

    .es-auth-panel,
    .es-auth-layout--register .es-auth-panel,
    .es-auth-layout--register-simple .es-auth-panel {
        max-height: none;
        overflow: visible;
        min-height: calc(100vh - 2rem);
        padding: 1.2rem;
    }

    .es-auth-mobile-brand {
        display: inline-flex;
    }

    .es-auth-panel__inner,
    .es-auth-layout--register .es-auth-panel__inner,
    .es-auth-layout--register-simple .es-auth-panel__inner {
        width: min(100%, 720px);
    }
}

@media (max-width: 768px) {
    .es-auth-shell {
        padding: 0;
        place-items: stretch;
    }

    .es-auth-layout,
    .es-auth-layout--register,
    .es-auth-layout--register-simple {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .es-auth-panel,
    .es-auth-layout--register .es-auth-panel,
    .es-auth-layout--register-simple .es-auth-panel {
        min-height: 100vh;
        padding: 1rem;
    }

    .es-auth-panel__title {
        font-size: 2rem;
    }

    .auth-grid--two {
        grid-template-columns: 1fr;
    }

    .auth-grid-span-2 {
        grid-column: auto;
    }

    .es-register-section,
    .es-register-form--simple .es-register-section {
        padding: 0.95rem;
    }

    .auth-section__header {
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 420px) {
    .es-auth-panel__title {
        font-size: 1.75rem;
    }

    .auth-label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .btn {
        min-height: 50px;
    }

    .auth-details-collapse__summary {
        align-items: flex-start;
    }
}

/* Register page: no initial scrollbar, scroll only when optional details are open */
.es-auth-layout--register-simple {
    min-height: min(720px, calc(100vh - 2rem));
}

.es-auth-layout--register-simple .es-auth-panel {
    max-height: min(720px, calc(100vh - 2rem));
    overflow: hidden;
    align-items: center;
    padding: clamp(0.9rem, 1.5vw, 1.35rem);
}

.es-auth-layout--register-simple .es-auth-panel__inner {
    width: min(100%, 620px);
}

.es-auth-layout--register-simple .es-auth-panel__header {
    margin-bottom: 0.75rem;
}

.es-auth-layout--register-simple .es-auth-panel__title {
    font-size: clamp(1.65rem, 2vw, 2.05rem);
}

.es-auth-layout--register-simple .es-register-form--simple {
    gap: 0.7rem;
}

.es-auth-layout--register-simple .es-register-form--simple .es-register-section {
    padding: 0.8rem;
}

.es-auth-layout--register-simple .es-register-form--simple .auth-section__header {
    margin-bottom: 0.55rem;
}

.es-auth-layout--register-simple .es-register-form--simple .auth-grid {
    gap: 0.65rem;
}

.es-auth-layout--register-simple .es-register-form--simple .form-group {
    gap: 0.28rem;
}

.es-auth-layout--register-simple .es-register-form--simple .form-group label {
    font-size: 0.8rem;
}

.es-auth-layout--register-simple .es-register-form--simple .auth-input-wrap input,
.es-auth-layout--register-simple .es-register-form--simple .form-group input,
.es-auth-layout--register-simple .es-register-form--simple .form-group select {
    min-height: 44px;
    border-radius: 14px;
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
    font-size: 0.88rem;
}

.es-auth-layout--register-simple .es-register-form--simple .auth-input-wrap input {
    padding-left: 2.65rem;
}

.es-auth-layout--register-simple .auth-input-wrap > i {
    left: 0.9rem;
    font-size: 1rem;
}

.es-auth-layout--register-simple .auth-password-toggle {
    width: 36px;
    height: 36px;
    right: 0.45rem;
}

.es-auth-layout--register-simple .auth-section__title {
    font-size: 0.92rem;
}

.es-auth-layout--register-simple .auth-section__description {
    font-size: 0.76rem;
}

.es-auth-layout--register-simple .auth-details-collapse__summary {
    padding: 0.75rem 0.85rem;
}

.es-auth-layout--register-simple .auth-details-collapse__icon {
    width: 34px;
    height: 34px;
    border-radius: 13px;
}

.es-auth-layout--register-simple .auth-details-collapse__summary strong {
    font-size: 0.86rem;
}

.es-auth-layout--register-simple .auth-details-collapse__summary small {
    font-size: 0.74rem;
}

.es-auth-layout--register-simple .btn {
    min-height: 46px;
    border-radius: 15px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.es-auth-layout--register-simple .es-auth-panel__footer {
    margin-top: 0.85rem;
}

.es-auth-layout--register-simple .auth-links,
.es-auth-layout--register-simple .auth-back-link {
    font-size: 0.82rem;
}

/* When optional details are open, enable scroll on right panel */
.es-auth-layout--register-simple:has(.auth-details-collapse[open]) .es-auth-panel {
    overflow-y: auto;
    align-items: start;
}

/* Fallback class if JS is used */
.es-auth-layout--register-simple.is-details-open .es-auth-panel {
    overflow-y: auto;
    align-items: start;
}

/* Optional: keep scrollbar clean */
.es-auth-layout--register-simple .es-auth-panel {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

.es-auth-layout--register-simple .es-auth-panel::-webkit-scrollbar {
    width: 8px;
}

.es-auth-layout--register-simple .es-auth-panel::-webkit-scrollbar-track {
    background: transparent;
}

.es-auth-layout--register-simple .es-auth-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.45);
}

@media (max-height: 760px) and (min-width: 981px) {
    .es-auth-layout--register-simple {
        min-height: calc(100vh - 1rem);
    }

    .es-auth-layout--register-simple .es-auth-panel {
        max-height: calc(100vh - 1rem);
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .es-auth-layout--register-simple .es-register-form--simple {
        gap: 0.55rem;
    }

    .es-auth-layout--register-simple .es-register-form--simple .es-register-section {
        padding: 0.7rem;
    }

    .es-auth-layout--register-simple .es-register-form--simple .auth-input-wrap input,
    .es-auth-layout--register-simple .es-register-form--simple .form-group input,
    .es-auth-layout--register-simple .es-register-form--simple .form-group select {
        min-height: 42px;
    }
}