:root {
    --psa-login-ink: #0b1426;
    --psa-login-muted: #65738a;
    --psa-login-border: #dce3ee;
    --psa-login-brand: #315cf5;
    --psa-login-positive: #19a77c;
    --psa-login-danger: #b83243;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #f3f6fb; color: var(--psa-login-ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { text-decoration: none; }
button, input { font: inherit; }

.psa-merchant-login { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(480px, .92fr); min-height: 100vh; }
.psa-merchant-login__visual { background: linear-gradient(145deg, #07162b 0%, #0c2144 62%, #173d7c 100%); color: white; min-height: 100vh; overflow: hidden; padding: 34px clamp(34px, 5vw, 74px); position: relative; }
.psa-merchant-login__visual::before { border: 1px solid rgba(255, 255, 255, .11); border-radius: 50%; content: ""; height: 560px; position: absolute; right: -270px; top: -250px; width: 560px; }
.psa-merchant-login__visual::after { background: radial-gradient(circle, rgba(75, 111, 238, .36), transparent 68%); bottom: -250px; content: ""; height: 520px; position: absolute; right: -130px; width: 520px; }

.psa-merchant-login__brand { position: relative; z-index: 2; }
.psa-merchant-login__brand a { align-items: center; color: white; display: inline-flex; gap: 12px; }
.psa-merchant-login__mark { align-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .23); border-radius: 12px; display: flex; font-size: 12px; font-weight: 850; height: 46px; justify-content: center; width: 46px; }
.psa-merchant-login__brand strong, .psa-merchant-login__brand small { display: block; }
.psa-merchant-login__brand strong { font-size: 14px; margin-bottom: 3px; }
.psa-merchant-login__brand small { color: #9eabc2; font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.psa-merchant-login__message { max-width: 740px; padding-top: clamp(76px, 12vh, 140px); position: relative; z-index: 2; }
.psa-merchant-login__eyebrow { align-items: center; color: #9cb2ff; display: flex; font-size: 10px; font-weight: 850; gap: 9px; letter-spacing: .14em; margin-bottom: 18px; text-transform: uppercase; }
.psa-merchant-login__eyebrow span { background: #36caa0; height: 1px; width: 30px; }
.psa-merchant-login__message h1 { font-size: clamp(40px, 5vw, 72px); letter-spacing: -.06em; line-height: .98; margin: 0; }
.psa-merchant-login__message h1 em { color: #8ea7ff; font-style: normal; }
.psa-merchant-login__message p { color: #aebbd1; font-size: 14px; line-height: 1.7; margin: 24px 0 0; max-width: 620px; }
.psa-merchant-login__benefits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.psa-merchant-login__benefits span { align-items: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 99px; color: #c4cee0; display: flex; font-size: 9px; font-weight: 700; gap: 7px; padding: 8px 11px; }
.psa-merchant-login__benefits i { background: #36caa0; border-radius: 50%; box-shadow: 0 0 0 4px rgba(54, 202, 160, .1); height: 6px; width: 6px; }
.psa-merchant-login__market { bottom: 40px; filter: saturate(.86); max-height: 38vh; object-fit: cover; opacity: .2; position: absolute; right: 0; width: 68%; }
.psa-merchant-login__foot { bottom: 24px; color: #7788a6 !important; font-size: 9px !important; left: clamp(34px, 5vw, 74px); margin: 0 !important; position: absolute; z-index: 2; }

.psa-merchant-login__panel { align-items: center; display: flex; justify-content: center; min-height: 100vh; padding: 36px clamp(28px, 5vw, 70px); }
.psa-merchant-login-card { max-width: 500px; width: 100%; }
.psa-merchant-login-card__mobile-brand { display: none; }
.psa-merchant-login-card__heading > span { align-items: center; color: var(--psa-login-brand); display: flex; font-size: 10px; font-weight: 850; gap: 8px; letter-spacing: .12em; margin-bottom: 18px; text-transform: uppercase; }
.psa-merchant-login-card__heading > span i { background: var(--psa-login-brand); border-radius: 50%; box-shadow: 0 0 0 5px rgba(49, 92, 245, .1); height: 7px; width: 7px; }
.psa-merchant-login-card__heading h2 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -.055em; margin: 0 0 10px; }
.psa-merchant-login-card__heading p { color: var(--psa-login-muted); font-size: 13px; line-height: 1.6; margin: 0 0 30px; }

.psa-login-errors { background: #fff0f2; border: 1px solid #f1c7cc; border-radius: 12px; color: #8a2835; margin-bottom: 18px; padding: 13px 15px; }
.psa-login-errors strong { display: block; font-size: 11px; margin-bottom: 4px; }
.psa-login-errors ul { font-size: 10px; line-height: 1.5; margin: 0; padding-left: 16px; }
.psa-login-field { margin-bottom: 18px; }
.psa-login-field label, .psa-login-field__label { color: #2f3c52; font-size: 11px; font-weight: 750; }
.psa-login-field > label { display: block; margin-bottom: 8px; }
.psa-login-field__label { align-items: center; display: flex; justify-content: space-between; margin-bottom: 8px; }
.psa-login-field__label a { color: var(--psa-login-brand); font-size: 9px; }
.psa-login-field input { background: #fbfcfe; border: 1px solid #d7dfeb; border-radius: 11px; color: var(--psa-login-ink); font-size: 13px; outline: none; padding: 14px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; width: 100%; }
.psa-login-field input:focus, .psa-login-captcha input:focus { background: white; border-color: var(--psa-login-brand); box-shadow: 0 0 0 4px rgba(49, 92, 245, .12); }
.psa-login-field input::placeholder { color: #a4afbf; }
.psa-login-password { position: relative; }
.psa-login-password input { padding-right: 80px; }
.psa-login-password button { background: none; border: 0; color: var(--psa-login-brand); cursor: pointer; font-size: 9px; font-weight: 850; padding: 8px; position: absolute; right: 7px; top: 50%; transform: translateY(-50%); }
.psa-login-password button:focus-visible { border-radius: 7px; outline: 3px solid rgba(49, 92, 245, .22); }

.psa-login-options { align-items: center; display: flex; justify-content: space-between; margin: -2px 0 18px; }
.psa-login-options label { align-items: center; color: #66748a; cursor: pointer; display: flex; font-size: 10px; gap: 8px; }
.psa-login-options input { accent-color: var(--psa-login-brand); }
.psa-login-options > span { color: #8794a7; font-size: 9px; }

.psa-login-captcha { margin-bottom: 17px; }
.psa-login-captcha > label { color: #2f3c52; display: block; font-size: 11px; font-weight: 750; margin-bottom: 8px; }
.psa-login-captcha > div { align-items: stretch; display: grid; grid-template-columns: minmax(0, 1fr) 115px 38px; }
.psa-login-captcha input { border: 1px solid #d7dfeb; border-radius: 11px 0 0 11px; font-size: 12px; min-width: 0; outline: none; padding: 12px; }
.psa-login-captcha img { border-block: 1px solid #d7dfeb; height: 44px; object-fit: cover; width: 115px; }
.psa-login-captcha button { background: #eef2f8; border: 1px solid #d7dfeb; border-radius: 0 11px 11px 0; color: #40506a; cursor: pointer; font-size: 18px; }
.psa-login-security-error { background: #fff1f2; border-radius: 8px; color: var(--psa-login-danger); font-size: 10px; margin: 0 0 12px; padding: 9px 10px; }

.psa-login-submit { align-items: center; background: var(--psa-login-brand); border: 0; border-radius: 11px; box-shadow: 0 12px 24px rgba(49, 92, 245, .23); color: white; cursor: pointer; display: flex; font-size: 12px; font-weight: 850; justify-content: center; min-height: 48px; transition: background .18s ease, transform .18s ease; width: 100%; }
.psa-login-submit:hover { background: #2448d8; transform: translateY(-1px); }
.psa-login-submit:focus-visible { outline: 4px solid rgba(49, 92, 245, .2); }
.psa-login-submit:disabled { cursor: wait; opacity: .72; transform: none; }
.psa-login-submit i { animation: psa-login-spin .8s linear infinite; border: 2px solid rgba(255, 255, 255, .42); border-radius: 50%; border-top-color: white; display: none; height: 14px; margin-left: 9px; width: 14px; }
.psa-login-submit.is-loading i { display: block; }

.psa-login-register { align-items: center; border-top: 1px solid #e4e9f1; display: flex; font-size: 10px; justify-content: space-between; margin-top: 28px; padding-top: 20px; }
.psa-login-register span { color: #768398; }
.psa-login-register a { color: var(--psa-login-brand); font-weight: 850; }
.psa-login-demo { align-items: center; background: #f0f4ff; border-radius: 11px; display: flex; gap: 10px; margin-top: 14px; padding: 11px; }
.psa-login-demo > div { flex: 1; min-width: 0; }
.psa-login-demo span, .psa-login-demo small { display: block; }
.psa-login-demo span { color: #65738a; font-size: 8px; margin-bottom: 3px; text-transform: uppercase; }
.psa-login-demo small { font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psa-login-demo button { background: white; border: 1px solid #d6dff5; border-radius: 8px; color: var(--psa-login-brand); cursor: pointer; font-size: 9px; font-weight: 850; padding: 8px 10px; }
.psa-login-protection { align-items: center; color: #8995a7; display: flex; font-size: 8px; gap: 7px; justify-content: center; margin: 20px 0 0; }
.psa-login-protection i { background: var(--psa-login-positive); border-radius: 50%; height: 6px; width: 6px; }

@keyframes psa-login-spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
    .psa-merchant-login { grid-template-columns: 1fr; }
    .psa-merchant-login__visual { display: none; }
    .psa-merchant-login__panel { min-height: 100vh; padding: 30px 20px; }
    .psa-merchant-login-card__mobile-brand { display: block; margin-bottom: 42px; }
    .psa-merchant-login-card__mobile-brand img { max-height: 45px; max-width: 150px; object-fit: contain; }
}

@media (max-width: 520px) {
    .psa-merchant-login__panel { align-items: flex-start; padding: 24px 16px 40px; }
    .psa-merchant-login-card__mobile-brand { margin-bottom: 34px; }
    .psa-login-register { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
