/**
 * Login / registration — Lamat split-screen look.
 * Restyles the existing `.mt-auth-*` form markup (kept so the registration
 * script keeps working) and adds the few utilities that markup relies on.
 */

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-lg-flex { display: flex !important; }
.w-100 { width: 100% !important; }
.text-center { text-align: center !important; }
.text-start, .text-left { text-align: start !important; }
.text-right { text-align: start !important; }

.wd-auth-body {
    background: var(--surface);
}

.wd-auth-body .mkt-nav {
    border-bottom-color: var(--mkt-line);
}

.wd-auth-body .wd-menu {
    visibility: hidden;
}

.wd-auth-body main.content {
    flex: 1;
    display: flex;
}

.wd-auth-body .mt-auth-wrap {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    min-height: calc(100vh - 73px);
    padding: 0;
    width: 100%;
}

.wd-auth-body .mt-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    background: var(--mkt-surface);
    overflow: visible;
}

/* ── Brand panel ──────────────────────────────────────────── */

.wd-auth-body .mt-auth-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Title and checklist stay together in the middle; space-between left a big empty gap
       whenever the form beside it is tall. */
    justify-content: center;
    gap: 36px;
    padding: 48px 52px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(15, 8, 40, 0.3), rgba(15, 8, 40, 0.8)),
        linear-gradient(135deg, #7c3aed 0%, #5b21b6 50%, #1e1b4b 100%);
}

.wd-auth-body .mt-auth-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    width: auto;
    height: auto;
    border-radius: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(236, 72, 153, 0.3), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(192, 132, 252, 0.3), transparent 50%);
}

.wd-auth-body .mt-auth-hero::after {
    display: none;
}

.wd-auth-logo {
    height: 52px;
    width: auto;
    filter: brightness(0) invert(1);
}

.wd-auth-body .mt-auth-hero__title {
    margin: 36px 0 14px;
    max-width: 480px;
    font: 900 clamp(34px, 3.6vw, 50px) / 1.15 var(--font-display);
    letter-spacing: -0.02em;
    color: #fff;
}

[dir='rtl'] .wd-auth-body .mt-auth-hero__title {
    letter-spacing: 0;
    line-height: 1.35;
}

.wd-auth-body .mt-auth-hero__sub {
    max-width: 440px;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
}

.wd-auth-body .mt-auth-hero__bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 22px 24px;
    max-width: 440px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 18px 40px -20px rgba(15, 5, 40, 0.6);
}

.wd-auth-body .mt-auth-hero__bullets li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.92);
}

.wd-auth-body .mt-auth-hero__bullets i {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
}

.wd-auth-body .mt-auth-hero__bullets i::after {
    content: '';
    position: absolute;
    inset: 5px 8px 8px 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ── Form panel ───────────────────────────────────────────── */

.wd-auth-body .mt-auth-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    padding: 40px 32px 56px;
    text-align: start;
}

.wd-auth-body .mt-auth-eyebrow {
    color: var(--mkt-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.wd-auth-body .mt-auth-heading {
    margin: 6px 0;
    font: 900 clamp(26px, 2.6vw, 34px) / 1.25 var(--font-display);
    color: var(--mkt-ink);
}

.wd-auth-body .mt-auth-sub {
    margin: 0 0 24px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--mkt-muted);
}

.wd-auth-body .mt-user-switch {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin: 0 0 24px;
    border-radius: 999px;
    background: var(--mkt-tint-2);
    border: 1px solid var(--primary-100);
}

.wd-auth-body .btn-user-sw {
    flex: 1;
    padding: 11px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font: inherit;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--mkt-muted);
    cursor: pointer;
    text-align: center;
    transition: background 180ms, color 180ms, box-shadow 180ms;
}

.wd-auth-body .btn-user-sw.active {
    background: var(--mkt-surface);
    color: var(--mkt-primary);
    box-shadow: var(--mkt-shadow-sm);
}

.wd-auth-body .mt-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
}

.wd-auth-body .mt-auth-field--full {
    grid-column: 1 / -1;
}

.wd-auth-body .mt-auth-field {
    margin-bottom: 16px;
    min-width: 0;
}

.wd-auth-body .mt-auth-field__label {
    display: block;
    margin-bottom: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--mkt-ink-2);
    text-align: start;
}

.wd-auth-body .mt-auth-input-wrap {
    position: relative;
}

.wd-auth-body .mt-auth-input-icon {
    display: none;
}

.wd-auth-body .mt-auth-input,
[dir='rtl'] .wd-auth-body .mt-auth-input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    font: inherit;
    font-size: 15px;
    color: var(--mkt-ink);
    background: var(--mkt-tint);
    border: 1px solid var(--mkt-line);
    border-radius: 12px;
    outline: none;
    transition: border-color 160ms, box-shadow 160ms, background 160ms;
}

.wd-auth-body .mt-auth-input:focus {
    border-color: var(--mkt-primary);
    background: var(--mkt-surface);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

.wd-auth-body .mt-auth-input::placeholder {
    color: var(--mkt-muted-2);
}

.wd-auth-body input.mt-auth-input[type='email'],
.wd-auth-body input.mt-auth-input[type='tel'],
.wd-auth-body input.mt-auth-input[type='password'],
.wd-auth-body input.mt-auth-input[name='token'] {
    direction: ltr;
}

[dir='rtl'] .wd-auth-body input.mt-auth-input[type='email'],
[dir='rtl'] .wd-auth-body input.mt-auth-input[type='tel'],
[dir='rtl'] .wd-auth-body input.mt-auth-input[type='password'] {
    text-align: right;
}

.wd-auth-body .input-password .mt-auth-input,
.wd-auth-body .mt-auth-input-wrap:has(.mt-auth-pw-toggle) .mt-auth-input {
    padding-inline-end: 46px;
}

[dir='rtl'] .wd-auth-body .mt-auth-input-wrap:has(.mt-auth-pw-toggle) input.mt-auth-input {
    padding: 0 14px 0 46px;
}

.wd-auth-body .mt-auth-pw-toggle,
[dir='rtl'] .wd-auth-body .mt-auth-pw-toggle {
    position: absolute;
    top: 50%;
    inset-inline: auto 8px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--mkt-muted);
    cursor: pointer;
}

.wd-auth-body .mt-auth-pw-toggle:hover {
    color: var(--mkt-primary);
    background: var(--mkt-tint-2);
}

.wd-auth-body .mt-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.wd-auth-body .mt-auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13.5px;
    color: var(--mkt-ink-2);
    cursor: pointer;
}

.wd-auth-body .mt-auth-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.wd-auth-body .mt-auth-link,
.wd-auth-body .mt-auth-footer a,
.wd-auth-body .mt-auth-consent a {
    color: var(--mkt-primary);
    font-weight: 800;
}

.wd-auth-body .mt-auth-link {
    font-size: 13.5px;
}

.wd-auth-body .mt-auth-submit {
    display: block;
    width: 100%;
    height: 52px;
    margin-top: 6px;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-size: 15.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 32px -12px color-mix(in srgb, var(--primary) 45%, transparent);
    transition: transform 180ms var(--mkt-ease), background 180ms;
}

.wd-auth-body .mt-auth-submit:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    filter: none;
}

.wd-auth-body .mt-auth-submit:disabled {
    opacity: 0.65;
    cursor: progress;
    transform: none;
}

.wd-auth-body .mt-auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    border-radius: 999px;
    border: 1px solid var(--mkt-line-strong);
    background: var(--mkt-surface);
    color: var(--mkt-ink);
    font-weight: 700;
    font-size: 14.5px;
}

.wd-auth-body .mt-auth-google img {
    width: 20px;
    height: 20px;
}

.wd-auth-body .mt-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--mkt-muted-2);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.wd-auth-body .mt-auth-divider::before,
.wd-auth-body .mt-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--mkt-line);
}

.wd-auth-body .mt-auth-error,
.wd-auth-body .error-text {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--danger);
    text-align: start;
}

.wd-auth-body .error-text.d-none {
    display: none !important;
}

.wd-auth-body .mt-auth-footer {
    margin: 18px 0 0;
    text-align: center;
    font-size: 14.5px;
    color: var(--mkt-muted);
}

.wd-auth-body .mt-auth-consent {
    margin: 4px 0 14px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--mkt-muted);
    text-align: center;
}

.wd-auth-body .mt-auth-demo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.wd-auth-body .mt-auth-demo a {
    padding: 9px 12px;
    border-radius: 10px;
    background: var(--mkt-tint-2);
    color: var(--mkt-ink-2);
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
}

.wd-auth-body #verification_step .mt-otp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--mkt-tint-2);
    color: var(--mkt-primary);
}

.wd-auth-body #verification_step .mt-otp-icon::before {
    content: '✉';
    font-size: 28px;
    font-style: normal;
}

@media (max-width: 991px) {
    .wd-auth-body .mt-auth-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .wd-auth-body .mt-auth-hero {
        display: none !important;
    }

    .wd-auth-body .mt-auth-form-panel {
        justify-content: flex-start;
        padding: 28px 16px 48px;
    }
}

@media (max-width: 520px) {
    .wd-auth-body .mt-auth-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
