/* ==========================================================
   代发中心登录 / 认证页
   ========================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --al-primary: #2563eb;
    --al-primary-d: #1d4ed8;
    --al-dark: #0f172a;
    --al-sub: #64748b;
    --al-bd: #e5e7eb;
    --al-ok: #059669;
    --al-err: #dc2626;
}

html, body { height: 100%; }
body {
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #1f2937;
    background: #0b1224;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: .2s; }
button, input { font-family: inherit; }
.ico { vertical-align: -3px; display: block; }

.al-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    position: relative;
    overflow: hidden;
}

/* ---- 左侧品牌区 ---- */
.al-hero {
    position: relative; color: #fff;
    padding: 48px 56px 40px;
    display: flex; flex-direction: column; justify-content: space-between;
    background:
        radial-gradient(ellipse 70% 55% at 80% 10%, rgba(37,99,235,.5), transparent 55%),
        radial-gradient(ellipse 45% 40% at 10% 90%, rgba(14,165,233,.22), transparent 50%),
        linear-gradient(145deg, #060b18 0%, #0f172a 42%, #122a5c 100%);
    overflow: hidden;
}
.al-hero-grid {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: .2; pointer-events: none;
    background-image:
        linear-gradient(rgba(148,163,184,.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,.2) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}
.al-hero-glow {
    position: absolute; width: 480px; height: 480px; right: -120px; top: -160px;
    background: radial-gradient(circle, rgba(59,130,246,.35), transparent 70%);
    pointer-events: none;
}
.al-hero-inner { position: relative; z-index: 2; }
.al-brand {
    display: inline-flex; align-items: center; gap: 12px;
    margin-bottom: 48px; color: #fff;
}
.al-brand-mark {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff; font-size: 20px; font-weight: 800;
    box-shadow: 0 10px 24px rgba(37,99,235,.35);
}
.al-brand-name { font-size: 18px; font-weight: 800; letter-spacing: .04em; }
.al-brand-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; letter-spacing: .08em; }

.al-eyebrow {
    font-family: "Barlow Condensed", "Noto Sans SC", sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: .22em;
    color: #60a5fa; margin-bottom: 16px;
}
.al-hero h1 {
    font-size: clamp(28px, 3.6vw, 42px); font-weight: 900;
    line-height: 1.22; letter-spacing: .02em; max-width: 520px;
    margin: 0 0 18px;
}
.al-hero-lead {
    color: #cbd5e1; font-size: 15.5px; line-height: 1.85;
    max-width: 480px; margin: 0 0 36px;
}
.al-feats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    max-width: 520px;
}
.al-feat {
    padding: 16px 16px 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(148,163,184,.18);
}
.al-feat em {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; margin-bottom: 10px;
    background: rgba(37,99,235,.25); color: #93c5fd; font-style: normal;
}
.al-feat h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: #fff; }
.al-feat p { margin: 0; font-size: 12.5px; color: #94a3b8; line-height: 1.6; }

.al-hero-foot {
    position: relative; z-index: 2;
    display: flex; flex-wrap: wrap; gap: 18px 28px;
    padding-top: 28px; border-top: 1px solid rgba(148,163,184,.2);
    margin-top: 40px;
}
.al-hero-foot b {
    display: block; font-family: "Barlow Condensed", sans-serif;
    font-size: 24px; font-weight: 700; color: #fff; letter-spacing: .04em; line-height: 1.1;
}
.al-hero-foot span { font-size: 12px; color: #94a3b8; margin-top: 4px; display: block; }

/* ---- 右侧登录区 ---- */
.al-panel {
    position: relative; z-index: 2;
    background: #f6f8fc;
    display: flex; flex-direction: column;
    min-height: 100vh;
}
.al-panel-top {
    display: flex; align-items: center; justify-content: flex-end; gap: 18px;
    padding: 22px 36px 0;
}
.al-panel-top a {
    font-size: 13px; font-weight: 600; color: #475569;
}
.al-panel-top a:hover { color: var(--al-primary); }

.al-panel-body {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 32px 36px 40px;
}
.al-card {
    width: 100%; max-width: 420px;
    background: #fff; border: 1px solid var(--al-bd);
    padding: 36px 34px 30px;
    box-shadow: 0 18px 48px rgba(15,23,42,.06);
}
.al-card-hd { margin-bottom: 26px; }
.al-card-hd h2 {
    margin: 0 0 8px; font-size: 24px; font-weight: 800; color: var(--al-dark);
}
.al-card-hd p { margin: 0; font-size: 14px; color: var(--al-sub); line-height: 1.6; }

.al-alert {
    display: none; margin-bottom: 16px; padding: 11px 14px;
    border: 1px solid #fecaca; background: #fef2f2; color: var(--al-err);
    font-size: 13.5px; line-height: 1.5;
}
.al-alert.show { display: block; }
.al-alert.ok {
    border-color: #a7f3d0; background: #ecfdf5; color: var(--al-ok);
}

.al-field { margin-bottom: 16px; }
.al-field label {
    display: block; margin-bottom: 7px;
    font-size: 13px; font-weight: 700; color: #334155;
}
.al-field label em { color: #ef4444; margin-left: 2px; font-style: normal; }
.al-input-wrap {
    position: relative; display: flex; align-items: center;
}
.al-input-wrap .ico-l {
    position: absolute; left: 14px; color: #94a3b8;
    display: flex; pointer-events: none;
}
.al-input-wrap input {
    width: 100%; height: 48px;
    padding: 0 14px 0 44px;
    border: 1px solid var(--al-bd); background: #fff;
    font-size: 15px; outline: none; transition: .2s; color: var(--al-dark);
}
.al-input-wrap input:focus {
    border-color: var(--al-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.al-input-wrap input::placeholder { color: #94a3b8; }
.al-eye {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    border: none; background: transparent; color: #94a3b8; cursor: pointer;
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
}
.al-eye:hover { color: var(--al-primary); }
.al-field-pass input { padding-right: 46px; }

.al-captcha-wrap input { padding-right: 118px; letter-spacing: .12em; text-transform: uppercase; }
.al-captcha-btn {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    width: 108px; height: 36px; padding: 0;
    border: 1px solid var(--al-bd); background: #f1f5f9; cursor: pointer; overflow: hidden;
}
.al-captcha-btn img { display: block; width: 100%; height: 100%; object-fit: cover; }
.al-captcha-btn:hover { border-color: var(--al-primary); }

.al-tools {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin: 4px 0 20px; flex-wrap: wrap;
}
.al-check {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; color: #475569; cursor: pointer; user-select: none;
}
.al-check input { width: 15px; height: 15px; accent-color: var(--al-primary); }
.al-tools a {
    font-size: 13px; font-weight: 600; color: var(--al-primary);
}
.al-tools a:hover { color: var(--al-primary-d); text-decoration: underline; }

.al-submit {
    width: 100%; height: 48px; border: none; cursor: pointer;
    background: linear-gradient(135deg, #3b82f6, var(--al-primary-d));
    color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .06em;
    transition: .2s;
}
.al-submit:hover {
    box-shadow: 0 12px 28px rgba(37,99,235,.35);
    transform: translateY(-1px);
}
.al-submit:disabled {
    opacity: .72; cursor: not-allowed; transform: none; box-shadow: none;
}

.al-links {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin-top: 18px;
}
.al-link {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 12px;
    border: 1px solid var(--al-bd); background: #f8fafc;
    font-size: 13px; font-weight: 600; color: #334155;
}
.al-link .ico { color: var(--al-primary); flex-shrink: 0; }
.al-link:hover {
    border-color: #93c5fd; background: #eff6ff; color: var(--al-primary);
}

.al-notice {
    margin-top: 18px; padding: 14px 14px 12px;
    background: #fffbeb; border: 1px solid #fde68a;
}
.al-notice-title {
    font-size: 13px; font-weight: 700; color: #92400e; margin-bottom: 6px;
}
.al-notice p {
    margin: 0; font-size: 12px; line-height: 1.7; color: #a16207;
}
.al-notice p + p { margin-top: 4px; }
.al-notice a { color: #b45309; font-weight: 700; text-decoration: underline; }

.al-panel-foot {
    padding: 0 36px 28px;
    text-align: center; font-size: 12px; color: #94a3b8; line-height: 1.7;
}
.al-panel-foot a { color: #64748b; }
.al-panel-foot a:hover { color: var(--al-primary); }

/* ---- 密码重置申请 ---- */
.al-page.is-apply { grid-template-columns: .9fr 1.1fr; }
.al-card.is-apply { max-width: 560px; padding: 32px 30px 28px; }
.al-steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    margin-bottom: 22px;
}
.al-step {
    padding: 12px 10px; background: #f8fafc; border: 1px solid var(--al-bd);
    text-align: center;
}
.al-step b {
    display: block; font-family: "Barlow Condensed", sans-serif;
    font-size: 18px; color: var(--al-primary); line-height: 1; margin-bottom: 4px;
}
.al-step span { font-size: 12px; color: var(--al-sub); font-weight: 600; }

.al-type-tabs { display: flex; gap: 10px; }
.al-type-tab {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 0; padding: 14px 10px; cursor: pointer; user-select: none;
    border: 1px solid var(--al-bd); background: #f8fafc;
    font-size: 14px; font-weight: 600; color: #475569;
}
.al-type-tab input { accent-color: var(--al-primary); width: 15px; height: 15px; }
.al-type-tab.is-active {
    border-color: #93c5fd; background: #eff6ff; color: var(--al-primary-d);
}
.al-type-tab small {
    display: block; width: 100%; text-align: center;
    font-size: 11px; font-weight: 500; color: #94a3b8; margin-top: 4px;
}
.al-type-tab.is-active small { color: #60a5fa; }

.al-field input.al-plain,
.al-field textarea.al-plain {
    width: 100%; border: 1px solid var(--al-bd); background: #fff;
    font-size: 15px; color: var(--al-dark); outline: none; transition: .2s;
}
.al-field input.al-plain {
    height: 46px; padding: 0 14px;
}
.al-field textarea.al-plain {
    min-height: 88px; padding: 12px 14px; resize: vertical; line-height: 1.6;
}
.al-field input.al-plain:focus,
.al-field textarea.al-plain:focus {
    border-color: var(--al-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.al-field-hint {
    margin-top: 6px; font-size: 12px; color: #94a3b8; line-height: 1.5;
}

.al-upload-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.al-upload {
    position: relative; height: 132px; cursor: pointer;
    border: 1px dashed #cbd5e1; background: #f8fafc; overflow: hidden;
    transition: .2s;
}
.al-upload:hover { border-color: var(--al-primary); background: #eff6ff; }
.al-upload-preview {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; color: #94a3b8; font-size: 13px; text-align: center; padding: 10px;
    background-size: cover; background-position: center;
}
.al-upload-preview .ico { color: var(--al-primary); opacity: .7; }
.al-upload-preview.has-img span,
.al-upload-preview.has-img .ico { display: none; }
.al-upload-preview.has-file {
    background: #eff6ff; color: #1d4ed8; font-weight: 600;
}
.al-upload-preview.has-file .ico { display: block; opacity: 1; }
.al-upload input[type="file"] {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; cursor: pointer;
}
.al-upload-single { grid-column: 1 / -1; }

.al-captcha-row {
    display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
}
.al-captcha-row input.al-plain {
    letter-spacing: .12em; text-transform: uppercase;
}
.al-captcha-img {
    width: 108px; height: 46px; padding: 0;
    border: 1px solid var(--al-bd); background: #f1f5f9; cursor: pointer; overflow: hidden;
}
.al-captcha-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.al-captcha-img:hover { border-color: var(--al-primary); }

.al-agree {
    display: flex; align-items: flex-start; gap: 8px;
    margin: 4px 0 18px; font-size: 12.5px; color: #64748b; line-height: 1.55;
}
.al-agree input { margin-top: 2px; accent-color: var(--al-primary); flex-shrink: 0; }

@media (max-width: 980px) {
    .al-page,
    .al-page.is-apply { grid-template-columns: 1fr; }
    .al-hero { min-height: auto; padding: 28px 24px 32px; }
    .al-brand { margin-bottom: 28px; }
    .al-feats { grid-template-columns: 1fr 1fr; }
    .al-hero-foot { margin-top: 28px; }
    .al-panel { min-height: 0; }
    .al-panel-top { justify-content: space-between; padding: 16px 20px 0; }
    .al-panel-body { padding: 20px 16px 28px; align-items: flex-start; }
    .al-card,
    .al-card.is-apply { padding: 28px 20px 22px; box-shadow: none; }
}
@media (max-width: 560px) {
    .al-feats { grid-template-columns: 1fr; }
    .al-links { grid-template-columns: 1fr; }
    .al-hero h1 { font-size: 26px; }
    .al-steps { grid-template-columns: 1fr; }
    .al-upload-grid { grid-template-columns: 1fr; }
    .al-type-tabs { flex-direction: column; }
    .al-captcha-row { grid-template-columns: 1fr; }
    .al-captcha-img { width: 100%; height: 44px; }
}
