:root {
    --sa-orange: #F87C00;
    --sa-orange-deep: #D96900;
    --sa-navy: #1E395F;
    --sa-ink: #14233A;
    --sa-muted: #5B6B82;
    --sa-line: #E6EBF2;
    --sa-soft: #FFF7EF;
    --sa-panel: #FFFFFF;
    --sa-radius: 22px;
    --sa-font: "Outfit", "Sora", sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: var(--sa-font);
    color: var(--sa-ink);
    background: #F4F7FB;
}

a { color: var(--sa-orange); text-decoration: none; }
a:hover { color: var(--sa-orange-deep); }

.shoply-auth {
    min-height: 100vh;
}

.sa-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}

.sa-visual {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 700px at -10% 10%, rgba(248, 124, 0, 0.35), transparent 55%),
        radial-gradient(900px 600px at 90% 90%, rgba(30, 57, 95, 0.55), transparent 50%),
        linear-gradient(160deg, #1E395F 0%, #14233A 48%, #0F1A2C 100%);
    color: #fff;
    padding: clamp(2rem, 4vw, 4rem);
    display: flex;
    align-items: flex-end;
}

.sa-visual__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    animation: saFloat 8s ease-in-out infinite;
}
.sa-visual__glow--one {
    width: 280px; height: 280px;
    background: rgba(248, 124, 0, 0.45);
    top: 12%; left: 8%;
}
.sa-visual__glow--two {
    width: 360px; height: 360px;
    background: rgba(255, 255, 255, 0.08);
    right: -80px; bottom: 10%;
    animation-delay: -3s;
}

.sa-visual__pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at 30% 40%, #000 20%, transparent 70%);
    opacity: 0.7;
}

.sa-visual__content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    animation: saRise 0.8s ease both;
}

.sa-brand img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.25));
}

.sa-brand--mobile { display: none; }
.sa-brand--mobile img { height: 40px; }

.sa-eyebrow {
    margin: 2.5rem 0 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 199, 140, 0.95);
    font-weight: 600;
}

.sa-headline {
    margin: 0;
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.sa-sub {
    margin: 1rem 0 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.78);
    max-width: 34ch;
}

.sa-points {
    list-style: none;
    margin: 1.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}
.sa-points li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}
.sa-points i {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 124, 0, 0.2);
    color: #FFC27A;
    font-size: 1rem;
}

.sa-panel {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background:
        linear-gradient(180deg, #FFFFFF 0%, #F7FAFD 100%);
    padding: 1.25rem clamp(1.25rem, 4vw, 3.5rem);
}

.sa-panel__top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    min-height: 52px;
}

.sa-lang { position: relative; }
.sa-lang__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--sa-line);
    background: #fff;
    color: var(--sa-navy);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}
.sa-lang__btn:hover {
    border-color: #ffd2a3;
    box-shadow: 0 8px 24px rgba(248,124,0,0.08);
}
.sa-lang__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 170px;
    background: #fff;
    border: 1px solid var(--sa-line);
    border-radius: 14px;
    padding: 0.4rem;
    box-shadow: 0 18px 40px rgba(20, 35, 58, 0.12);
    z-index: 20;
    max-height: 260px;
    overflow: auto;
}
.sa-lang__menu a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    color: var(--sa-ink);
    font-weight: 500;
}
.sa-lang__menu a:hover,
.sa-lang__menu a.is-active {
    background: var(--sa-soft);
    color: var(--sa-orange-deep);
}

.sa-panel__body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
}

.sa-card {
    width: min(100%, 440px);
    animation: saRise 0.7s ease 0.1s both;
}

.sa-card__title {
    margin: 0;
    font-size: clamp(1.8rem, 2.5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--sa-navy);
}
.sa-card__lead {
    margin: 0.65rem 0 0;
    color: var(--sa-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.sa-form {
    margin-top: 1.75rem;
    display: grid;
    gap: 1rem;
}

.sa-field label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sa-navy);
}

.sa-input {
    position: relative;
}
.sa-input i {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #90A0B5;
    font-size: 1.1rem;
    pointer-events: none;
}
[dir="rtl"] .sa-input i { left: auto; right: 0.95rem; }

.sa-input input {
    width: 100%;
    border: 1px solid var(--sa-line);
    background: #fff;
    border-radius: 14px;
    padding: 0.95rem 1rem 0.95rem 2.7rem;
    font: inherit;
    font-size: 1rem;
    color: var(--sa-ink);
    outline: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
[dir="rtl"] .sa-input input { padding: 0.95rem 2.7rem 0.95rem 1rem; }

.sa-input input:focus {
    border-color: var(--sa-orange);
    box-shadow: 0 0 0 4px rgba(248, 124, 0, 0.15);
}

.sa-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: -0.15rem;
}
.sa-row a {
    font-size: 0.92rem;
    font-weight: 600;
}

.sa-btn {
    appearance: none;
    border: 0;
    width: 100%;
    border-radius: 14px;
    padding: 0.95rem 1.2rem;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    background: linear-gradient(135deg, var(--sa-orange) 0%, var(--sa-orange-deep) 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(248, 124, 0, 0.28);
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.sa-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(248, 124, 0, 0.34);
    filter: brightness(1.03);
}
.sa-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.sa-alt {
    margin: 1.4rem 0 0;
    text-align: center;
    color: var(--sa-muted);
    font-size: 0.95rem;
}
.sa-alt a { font-weight: 700; }

.sa-alert {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #FFF1F1;
    color: #B42318;
    border: 1px solid #FAD4D4;
    font-size: 0.92rem;
}
.sa-alert--ok {
    background: #ECFDF3;
    color: #027A48;
    border-color: #ABEFC6;
}

.sa-panel__foot {
    text-align: center;
    color: var(--sa-muted);
    font-size: 0.85rem;
    padding: 0.5rem 0 0.75rem;
}

.sa-loader {
    position: fixed;
    inset: 0;
    background: rgba(20, 35, 58, 0.42);
    backdrop-filter: blur(4px);
    display: grid;
    place-content: center;
    gap: 0.75rem;
    z-index: 1000;
    color: #fff;
    text-align: center;
}
.sa-loader__spin {
    width: 42px;
    height: 42px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.25);
    border-top-color: var(--sa-orange);
    animation: saSpin 0.8s linear infinite;
}

@keyframes saRise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes saFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}
@keyframes saSpin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
    .sa-shell { grid-template-columns: 1fr; }
    .sa-visual {
        min-height: 34vh;
        align-items: center;
        padding: 1.5rem;
    }
    .sa-visual__content { max-width: none; }
    .sa-headline { font-size: 1.85rem; }
    .sa-points { display: none; }
    .sa-brand--mobile { display: inline-flex; margin-right: auto; }
    .sa-panel__top { justify-content: space-between; }
    .sa-panel { min-height: auto; }
}

@media (max-width: 560px) {
    .sa-visual { display: none; }
    .sa-panel {
        min-height: 100vh;
        padding: 1rem 1.1rem 1.25rem;
    }
    .sa-brand--mobile { display: inline-flex; }
}
