/* 开小店 · 商家登录/注册 · 2026 SaaS 橙色风格 */
:root {
    --orange: #ff6a00;
    --orange-deep: #e85d00;
    --orange-mid: #ff8a33;
    --orange-soft: #fff4eb;
    --orange-glow: rgba(255, 106, 0, 0.28);
    --ink: #161616;
    --ink-soft: #6b6b6b;
    --line: #efe6de;
    --bg: #fffaf6;
    --white: #ffffff;
    --danger: #e53935;
    --danger-bg: #fff1f0;
    --ok: #1b8a4a;
    --ok-bg: #eaf8f0;
    --radius: 18px;
    --font: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --display: 'Outfit', 'Noto Sans SC', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { min-height: 100%; }

body.auth-body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-deep); }

/* ========== Shell ========== */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 1.05fr) minmax(380px, 1fr);
}

/* ========== Left visual panel ========== */
.auth-aside {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255,255,255,0.22), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 85%, rgba(0,0,0,0.12), transparent 50%),
        linear-gradient(155deg, #ff9a4a 0%, #ff6a00 48%, #d95500 100%);
}

.auth-aside::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 70% at 40% 40%, #000 10%, transparent 75%);
    pointer-events: none;
}

.aside-brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-family: var(--display);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
    width: fit-content;
    text-decoration: none;
    opacity: 1;
    transform: none;
}

.aside-brand:hover,
.aside-brand:focus,
.aside-brand:active,
.aside-brand:focus-visible {
    color: #fff;
    opacity: 1;
    outline: none;
    text-decoration: none;
}

.aside-brand .mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    color: var(--orange);
    display: grid;
    place-items: center;
    font-size: 18px;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    opacity: 1;
    transform: none;
}

.aside-brand:hover .mark,
.aside-brand:focus .mark,
.aside-brand:active .mark {
    background: #fff;
    color: var(--orange);
    opacity: 1;
    transform: none;
    box-shadow: none;
}

.aside-hero {
    position: relative;
    z-index: 2;
    max-width: 420px;
    padding: 24px 0;
}

.aside-hero h1 {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.aside-hero p {
    font-size: 16px;
    opacity: 0.92;
    max-width: 360px;
}

.aside-scene {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.scene-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    animation: card-in .7s ease both;
}

.scene-card:nth-child(2) { animation-delay: .08s; }
.scene-card:nth-child(3) { animation-delay: .16s; }

.scene-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,0.22);
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

.scene-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.scene-card p {
    font-size: 12px;
    opacity: 0.88;
}

.aside-foot {
    position: relative;
    z-index: 2;
    font-size: 13px;
    opacity: 0.85;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.aside-foot span i {
    margin-right: 6px;
}

.aside-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.aside-deco.d1 {
    width: 220px;
    height: 220px;
    background: rgba(255,255,255,0.1);
    top: -60px;
    right: -40px;
    animation: pulse 5s ease-in-out infinite;
}

.aside-deco.d2 {
    width: 140px;
    height: 140px;
    background: rgba(255,255,255,0.08);
    bottom: 80px;
    left: -40px;
    animation: pulse 6s .4s ease-in-out infinite;
}

/* ========== Right panel ========== */
.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background:
        radial-gradient(ellipse 50% 40% at 100% 0%, rgba(255, 138, 51, 0.1), transparent 60%),
        var(--bg);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border: 1px solid rgba(255, 106, 0, 0.08);
    border-radius: 24px;
    padding: 36px 36px 32px;
    box-shadow:
        0 1px 2px rgba(255, 106, 0, 0.04),
        0 24px 56px rgba(255, 106, 0, 0.08);
    animation: rise .55s ease both;
}

.auth-card.wide { max-width: 520px; }

.auth-card-head {
    margin-bottom: 28px;
}

.auth-card-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
    background: var(--orange-soft);
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.auth-card-head h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.auth-card-head p {
    font-size: 14px;
    color: var(--ink-soft);
}

/* Progress stepper */
.progress {
    margin-bottom: 28px;
}

.progress-track {
    height: 4px;
    background: #f0e8e0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 14px;
}

.progress-bar {
    height: 100%;
    width: 33.33%;
    background: linear-gradient(90deg, var(--orange-mid), var(--orange));
    border-radius: 999px;
    transition: width .4s cubic-bezier(.22,1,.36,1);
    box-shadow: 0 0 12px var(--orange-glow);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.progress-step {
    flex: 1;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #b0a39a;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: color .25s;
}

.progress-step .dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3ebe4;
    color: #a8988c;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    transition: all .3s ease;
}

.progress-step.active { color: var(--orange); }
.progress-step.active .dot {
    background: linear-gradient(145deg, var(--orange-mid), var(--orange));
    color: #fff;
    box-shadow: 0 6px 14px var(--orange-glow);
}

.progress-step.done { color: var(--orange-deep); }
.progress-step.done .dot {
    background: var(--orange-soft);
    color: var(--orange);
}

/* Form */
.form-step { display: none; animation: rise .35s ease both; }
.form-step.active { display: block; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.form-group label .req { color: var(--orange); }
.form-group label .opt {
    color: #aaa;
    font-weight: 400;
    font-size: 12px;
}

.field {
    position: relative;
}

.field i.prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #c4b5a8;
    font-size: 14px;
    pointer-events: none;
}

.field input,
.field textarea {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.12);
    background: #fff;
}

.field input::placeholder { color: #c0b4aa; }

.field.no-icon input { padding-left: 14px; }

.hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #a3968c;
}

/* Upload zones */
.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.upload-zone {
    position: relative;
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-box {
    border: 1.5px dashed #e2d5c9;
    border-radius: 14px;
    background: #fffaf6;
    padding: 22px 12px;
    text-align: center;
    transition: all .25s;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.upload-zone:hover .upload-box,
.upload-zone.has-file .upload-box {
    border-color: var(--orange);
    background: var(--orange-soft);
}

.upload-box i {
    font-size: 28px;
    color: #c4b5a8;
}

.upload-zone:hover .upload-box i,
.upload-zone.has-file .upload-box i {
    color: var(--orange);
}

.upload-box span {
    font-size: 12px;
    color: var(--ink-soft);
    font-weight: 500;
}

.upload-box img.preview {
    max-width: 100%;
    max-height: 90px;
    border-radius: 8px;
    display: none;
    object-fit: cover;
}

.upload-zone.has-file .upload-box i,
.upload-zone.has-file .upload-box > span { display: none; }
.upload-zone.has-file .upload-box img.preview { display: block; }

.upload-single .upload-box { min-height: 100px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    border-radius: 12px;
    padding: 14px 20px;
    transition: transform .2s, box-shadow .2s, background .2s;
    box-sizing: border-box;
}
.btn i {
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    width: 100%;
    color: #fff;
    background: linear-gradient(135deg, #ff8a33 0%, var(--orange) 55%, var(--orange-deep) 100%);
    box-shadow: 0 10px 24px var(--orange-glow);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 14px 30px rgba(255, 106, 0, 0.4);
}

.btn-secondary {
    width: 100%;
    background: #fff;
    color: var(--ink);
    border: 1.5px solid var(--line);
}

.btn-secondary:hover {
    border-color: #e0cfc0;
    background: #fffaf6;
}

.btn-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    margin-top: 8px;
}

.btn-row.single { grid-template-columns: 1fr; }

/* Alerts */
.alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(229, 57, 53, 0.15);
}

.alert-ok {
    background: var(--ok-bg);
    color: var(--ok);
    border: 1px solid rgba(27, 138, 74, 0.15);
}

.alert-ok a {
    color: var(--ok);
    font-weight: 700;
    text-decoration: underline;
}

.debug-box {
    background: #eef6ff;
    color: #1565c0;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 12px;
    white-space: pre-wrap;
    font-family: ui-monospace, monospace;
}

.auth-links {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: var(--ink-soft);
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.auth-links a { font-weight: 600; }

.mobile-brand {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-family: var(--display);
    font-weight: 800;
    font-size: 20px;
    color: var(--ink);
    text-decoration: none;
    opacity: 1;
}

.mobile-brand:hover,
.mobile-brand:focus,
.mobile-brand:active,
.mobile-brand:focus-visible {
    color: var(--ink);
    opacity: 1;
    outline: none;
    text-decoration: none;
}

.mobile-brand .mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--orange);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 15px;
    box-shadow: none;
    opacity: 1;
    transform: none;
}

.mobile-brand:hover .mark,
.mobile-brand:focus .mark,
.mobile-brand:active .mark {
    background: var(--orange);
    color: #fff;
    opacity: 1;
    transform: none;
    box-shadow: none;
}

/* Animations */
@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes card-in {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: .85; }
    50% { transform: scale(1.06); opacity: 1; }
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside {
        min-height: auto;
        padding: 28px 24px 32px;
    }
    .aside-scene { display: none; }
    .aside-hero { padding: 12px 0 0; }
    .aside-hero h1 { font-size: 26px; }
    .aside-foot { display: none; }
    .auth-main { padding: 24px 16px 40px; }
    .auth-card { padding: 28px 22px 24px; border-radius: 20px; }
    .mobile-brand { display: none; }
}

@media (max-width: 560px) {
    .form-row,
    .upload-grid { grid-template-columns: 1fr; }
    .progress-step span.label { display: none; }
    .btn-row { grid-template-columns: 1fr 1fr; }
    .auth-aside { display: none; }
    .mobile-brand { display: inline-flex; }
    .auth-main {
        min-height: 100vh;
        padding: 20px 14px 32px;
        align-items: flex-start;
    }
}
