/* ==========================================================================
   导导游后台 · 登录 / 注册 统一认证页样式
   文件：public/assets/css/admin-auth.css
   适用：admin/view/index/{login,lxs_register,dy_register}.html

   注意：FastAdmin 的 CSS 由 requirejs 异步插入 head，会排在本文件之后，
        所以选择器统一以 body.auth-page 打头提高特异性，不要改成裸类名。
   ========================================================================== */

:root {
    --a-brand: #F7B500;
    --a-brand-deep: #E29800;
    --a-ink: #10131F;
    --a-ink-2: #222839;
    --a-text: #3B4356;
    --a-muted: #77808F;
    --a-line: #E4E8F0;
    --a-bg: #F4F6FA;
    --a-radius: 22px;
}

/* ---------------- 页面背景 ----------------
   原设计是一整块 #F4F6FA 灰白底，对旅游行业太素。
   改成「旅游实景背景图 + 柔白薄纱」：画面看得见，白色表单卡又不受影响读不清。
   注意：图片用站点根绝对路径(../img 会被 __CDN__ 域名带偏)，且必须给出兜底底色，
        图片没加载出来时退化成淡蓝也不会是灰白一片。 */
body.auth-page {
    margin: 0;
    background-color: #E8F0FA;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .56) 48%, rgba(247, 250, 255, .82) 100%),
        url(/assets/img/auth-bg.jpg);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: scroll, fixed;
    /* 遮罩取「看得见画面 + 白字/白卡仍可读」的平衡：
       中部最薄(0.56)正好在卡片两侧露出景色，首尾加厚托住顶栏与页脚 */
    color: var(--a-text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}
body.auth-page a { color: var(--a-brand-deep); text-decoration: none; }
body.auth-page a:hover { color: var(--a-brand-deep); text-decoration: underline; }

.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------------- 顶部条 ---------------- */
body.auth-page .auth-top {
    /* 顶栏沿用同一张实景图，压深色后与下方背景连成一体 */
    background-image:
        linear-gradient(120deg, rgba(10, 14, 26, .90) 0%, rgba(22, 30, 50, .82) 55%, rgba(36, 46, 74, .84) 100%),
        url(/assets/img/auth-bg.jpg);
    background-size: cover, cover;
    background-position: center, center 30%;
    color: #fff;
    box-shadow: 0 6px 24px rgba(12, 18, 34, .22);
}
body.auth-page .auth-top-inner {
    max-width: 1160px; margin: 0 auto; padding: 18px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
body.auth-page .auth-brand-mark { display: flex; align-items: center; gap: 12px; }
body.auth-page .auth-brand-mark img { width: 42px; height: 42px; border-radius: 12px; background: #fff; padding: 2px; }
body.auth-page .auth-brand-mark b { color: #fff; font-size: 22px; letter-spacing: .04em; font-weight: 700; }
body.auth-page .auth-brand-mark em {
    font-style: normal; margin-left: 10px; padding: 3px 10px; border-radius: 999px;
    background: rgba(247, 181, 0, .16); color: var(--a-brand); font-size: 12px; letter-spacing: .06em;
}
body.auth-page .auth-date { color: rgba(255, 255, 255, .62); font-size: 13px; }

/* ---------------- 主体 ----------------
   用 margin:auto 而不是 align-items:center，内容超高时不会被裁掉顶部 */
body.auth-page .auth-main { flex: 1; padding: 40px 24px 48px; display: flex; }
body.auth-page .auth-shell {
    width: 100%; max-width: 1160px; margin: auto;
    display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; align-items: stretch;
}
body.auth-page .auth-shell.narrow { max-width: 640px; grid-template-columns: 1fr; }
body.auth-page .auth-shell.mid { max-width: 920px; grid-template-columns: 1fr; }

/* 品牌介绍区（登录页左侧）
   与右侧卡片等高（stretch），内部用 flex 纵向撑开，二维码区贴底 */
body.auth-page .auth-side {
    position: relative; overflow: hidden; padding: 38px 34px; border-radius: var(--a-radius);
    /* 品牌区：实景图 + 深色渐变压制（保证白字可读）+ 品牌金色光晕 */
    background-color: #171D31;
    background-image:
        radial-gradient(circle at 88% 8%, rgba(247, 181, 0, .30), transparent 62%),
        linear-gradient(160deg, rgba(12, 17, 32, .74) 0%, rgba(22, 30, 50, .58) 45%, rgba(32, 40, 62, .80) 100%),
        url(/assets/img/auth-bg.jpg);
    background-size: auto, cover, cover;
    background-position: center, center, center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 26px 70px rgba(12, 18, 34, .34);
    display: flex; flex-direction: column;
}
/* 底部再压一层暗角，二维码白块不会被花背景吃掉 */
body.auth-page .auth-side::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
    background: linear-gradient(180deg, transparent, rgba(8, 12, 24, .55));
    pointer-events: none;
}
body.auth-page .auth-side h1 { margin: 0 0 12px; color: #fff; font-size: 28px; line-height: 1.35; font-weight: 700; }
body.auth-page .auth-side > p { margin: 0; color: rgba(255, 255, 255, .78); max-width: 420px; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
body.auth-page .auth-feats {
    position: relative; margin: 24px 0 0; padding: 0; list-style: none;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
body.auth-page .auth-feats li {
    padding: 12px 10px; border-radius: 14px; text-align: center;
    background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .16);
    /* 磨砂玻璃：透出背景图又不影响上面白字 */
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transition: background .25s, border-color .25s, transform .25s;
}
body.auth-page .auth-feats li:hover { background: rgba(255, 255, 255, .16); border-color: rgba(247, 181, 0, .45); transform: translateY(-2px); }
body.auth-page .auth-feats i {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin: 0 auto 8px; border-radius: 12px;
    background: rgba(247, 181, 0, .18); color: var(--a-brand);
}
body.auth-page .auth-feats i svg { width: 21px; height: 21px; }
body.auth-page .auth-feats b { display: block; color: #fff; font-size: 14px; font-weight: 600; }
body.auth-page .auth-feats span { display: block; color: rgba(255, 255, 255, .55); font-size: 12px; }

/* APP 下载二维码：margin-top:auto 让它贴住侧栏底部 */
body.auth-page .auth-apps {
    position: relative; margin-top: auto; padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex; gap: 24px; flex-wrap: wrap;
}
body.auth-page .auth-app { text-align: center; color: rgba(255, 255, 255, .82); }
body.auth-page .auth-app img {
    width: 104px; height: 104px; padding: 6px; border-radius: 14px; background: #fff;
    transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s;
}
body.auth-page .auth-app:hover img { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0, 0, 0, .3); }
body.auth-page .auth-app span { display: block; margin-top: 8px; font-size: 13px; }

/* ---------------- 卡片 ----------------
   卡片自身 flex 纵向：顶部渐变条 / 头部 / 表单(垂直居中) / 底部 */
body.auth-page .auth-card {
    position: relative; background: #fff; border: 1px solid var(--a-line);
    border-radius: var(--a-radius); box-shadow: 0 18px 46px rgba(20, 26, 44, .10); overflow: hidden;
    display: flex; flex-direction: column;
}
body.auth-page .auth-card-accent { height: 4px; background: linear-gradient(90deg, #FFC63D, var(--a-brand) 45%, var(--a-brand-deep)); }
body.auth-page .auth-card-head {
    padding: 26px 30px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
/* 居中版头部：登录页用（徽标 + 标题 + 副标题） */
body.auth-page .auth-card-head.center {
    flex-direction: column; align-items: center; text-align: center; padding: 32px 30px 0;
}
body.auth-page .auth-card-head.center .auth-badge { margin: 0 auto 14px; }
body.auth-page .auth-badge {
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 18px; color: #2A1E00;
    background: linear-gradient(135deg, #FFC63D, var(--a-brand) 50%, var(--a-brand-deep));
    box-shadow: 0 10px 22px rgba(247, 181, 0, .34);
}
body.auth-page .auth-badge svg { width: 28px; height: 28px; }
body.auth-page .auth-card-head h2 { margin: 0; font-size: 21px; color: var(--a-ink); font-weight: 700; }
body.auth-page .auth-card-head p { margin: 6px 0 0; color: var(--a-muted); font-size: 13px; }
body.auth-page .auth-card-head .auth-switch { font-size: 13px; white-space: nowrap; }
body.auth-page .auth-card-head .auth-switch a { margin-left: 8px; }
body.auth-page .auth-card-body {
    flex: 1; padding: 24px 30px 8px;
    display: flex; flex-direction: column; justify-content: center;
}
body.auth-page .auth-card-foot {
    padding: 16px 30px 22px; text-align: center; font-size: 13px; color: var(--a-muted);
    border-top: 1px solid #F0F3F8; margin-top: 8px;
}
body.auth-page .auth-card-foot a { margin: 0 6px; }

/* 表单 */
body.auth-page .auth-form .field { margin-bottom: 18px; }
body.auth-page .auth-form .field > label {
    display: block; margin-bottom: 7px; font-size: 13px; color: #5B6472; font-weight: 500;
}
body.auth-page .auth-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
body.auth-page .auth-form .form-control {
    width: 100%; height: 48px; padding: 0 14px;
    border: 1px solid var(--a-line); border-radius: 11px; background: #fff;
    font-size: 14px; color: var(--a-ink); box-shadow: none;
    transition: border-color .22s, box-shadow .22s;
}
body.auth-page .auth-form .form-control::placeholder { color: #A8B0BF; }
body.auth-page .auth-form .form-control:hover { border-color: #CDD4E0; }
body.auth-page .auth-form .form-control:focus {
    border-color: var(--a-brand); outline: 0; box-shadow: 0 0 0 3px rgba(247, 181, 0, .16);
}
body.auth-page .auth-form select.form-control { -webkit-appearance: none; appearance: none; }
body.auth-page .auth-form .form-control:-webkit-autofill { box-shadow: 0 0 0 60px #fff inset; -webkit-text-fill-color: #2A3142; }

/* 输入框图标（登录页） */
body.auth-page .auth-input { position: relative; }
body.auth-page .auth-input .ico {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #A8B0BF; pointer-events: none; display: flex;
}
body.auth-page .auth-input .ico svg { width: 18px; height: 18px; }
body.auth-page .auth-input .form-control { padding-left: 42px; }
body.auth-page .auth-input.captcha-field .form-control { padding-right: 108px; }
body.auth-page .auth-input img.captcha {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    height: 34px; border-radius: 8px; cursor: pointer; border: 1px solid var(--a-line);
}

/* 记住密码 / 忘记密码 */
body.auth-page .auth-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 22px; }
body.auth-page .auth-row label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: #5B6472; cursor: pointer; }
body.auth-page .auth-row input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--a-brand); }
body.auth-page .auth-row a { font-size: 13px; }

/* 按钮 */
body.auth-page .auth-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
body.auth-page .btn-auth {
    height: 50px; padding: 0 30px; border: 0; border-radius: 11px; cursor: pointer;
    background: linear-gradient(135deg, #FFC63D, var(--a-brand) 45%, var(--a-brand-deep));
    color: #241A00; font-size: 15px; font-weight: 700; letter-spacing: .04em;
    box-shadow: 0 10px 24px rgba(247, 181, 0, .32);
    transition: transform .25s cubic-bezier(.22, .61, .36, 1), box-shadow .25s;
}
body.auth-page .btn-auth:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(247, 181, 0, .42); color: #241A00; }
body.auth-page .btn-auth:active { transform: translateY(0); }
body.auth-page .btn-auth.block { display: block; width: 100%; }
body.auth-page .btn-auth.ghost {
    background: #fff; border: 1px solid var(--a-line); color: var(--a-text); box-shadow: none; font-weight: 600;
}
body.auth-page .btn-auth.ghost:hover { border-color: var(--a-brand); color: var(--a-brand-deep); box-shadow: 0 6px 16px rgba(20, 26, 44, .08); }
/* 注册页底部按钮：双列等宽大按钮（与登录页 block 按钮同规格）。
   注册页卡片没有 foot 区，卡片 body 底部 padding 只有 8px，
   按钮组必须自带底部留白，否则整组贴着卡片边缘像被截断 */
body.auth-page .auth-actions.center-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    margin: 26px 0 20px;
}
body.auth-page .auth-actions.center-actions .btn-auth { width: 100%; }

/* 上传区 */
body.auth-page .auth-uploads { display: flex; gap: 14px; flex-wrap: wrap; }
body.auth-page .auth-upload { flex: 1 1 160px; min-width: 150px; }
body.auth-page .auth-upload > small { display: block; margin-bottom: 7px; font-size: 13px; color: #5B6472; }
body.auth-page .faupload-image {
    width: 100%; height: 76px; border: 1px dashed #C6CFDD; border-radius: 12px;
    background: #F8FAFD; color: #7C8698; font-size: 13px; box-shadow: none; text-shadow: none;
    transition: border-color .22s, color .22s, background .22s;
}
body.auth-page .faupload-image:hover { border-color: var(--a-brand); color: var(--a-brand-deep); background: #FFFBF0; }
body.auth-page .faupload-preview { margin: 10px 0 0; padding: 0; }
body.auth-page .faupload-preview li { position: relative; width: 108px; height: 108px; border-radius: 12px; overflow: hidden; border: 1px solid var(--a-line); }
body.auth-page .faupload-preview img { width: 100%; height: 100%; object-fit: cover; }
/* 上传预览的删除控件：FastAdmin 默认裸样式（红条/蓝链）太丑，
   统一收成右上角小圆标签；兼容 fa-del / del 两种类名 */
body.auth-page .faupload-preview li .fa-del,
body.auth-page .faupload-preview li a.del,
body.auth-page .faupload-preview li .del {
    position: absolute; right: 4px; top: 4px; z-index: 2;
    height: 22px; margin: 0; padding: 0 9px; border: 0; border-radius: 999px;
    background: rgba(15, 19, 32, .66); color: #fff;
    font-size: 12px; line-height: 22px; min-width: 0; white-space: nowrap; cursor: pointer;
}
body.auth-page .faupload-preview li .fa-del:hover,
body.auth-page .faupload-preview li a.del:hover,
body.auth-page .faupload-preview li .del:hover {
    background: rgba(15, 19, 32, .88); color: #fff; text-decoration: none;
}

/* 验证码发送链接（导游注册） */
body.auth-page .auth-code-wrap { position: relative; }
body.auth-page .auth-code-wrap a.send-code {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    height: 32px; padding: 0 14px; border-radius: 8px; background: #FFF6DF;
    color: var(--a-brand-deep); font-size: 13px; line-height: 32px; white-space: nowrap;
}
body.auth-page .auth-code-wrap a.send-code:hover { text-decoration: none; background: #FFEFC2; }
body.auth-page .auth-code-wrap .form-control { padding-right: 110px; }
/* 倒计时期间禁点（避免连点刷短信），pointer-events 挡住点击，视觉上变灰 */
body.auth-page .auth-code-wrap a.send-code.is-disabled {
    color: #A8B0BF; background: #F2F4F8; pointer-events: none;
}

/* ---------------- 找回密码：步骤条 + 分步面板 ---------------- */
body.auth-page .auth-steps { display: flex; margin: 0 0 26px; padding: 0; list-style: none; }
body.auth-page .auth-steps li { position: relative; flex: 1; text-align: center; }
body.auth-page .auth-steps li i {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; margin: 0 auto 8px; border-radius: 50%;
    background: #EEF1F7; color: #9AA3B2; font-style: normal; font-size: 14px; font-weight: 700;
    transition: background .25s, color .25s, box-shadow .25s;
}
body.auth-page .auth-steps li span { font-size: 13px; color: var(--a-muted); transition: color .25s; }
/* 连接线：跳过第一项，画在前一项与当前项中间 */
body.auth-page .auth-steps li + li::before {
    content: ""; position: absolute; top: 16px; left: -50%; width: 100%; height: 2px; background: #E6EAF2;
}
body.auth-page .auth-steps li.is-active i {
    background: linear-gradient(135deg, #FFC63D, var(--a-brand) 50%, var(--a-brand-deep));
    color: #241A00; box-shadow: 0 6px 16px rgba(247, 181, 0, .34);
}
body.auth-page .auth-steps li.is-active span { color: var(--a-ink); font-weight: 600; }
body.auth-page .auth-steps li.is-done i { background: #1F9D63; color: #fff; box-shadow: 0 6px 16px rgba(31, 157, 99, .26); }
body.auth-page .auth-steps li.is-done span { color: #1F9D63; }
body.auth-page .auth-steps li.is-done + li::before { background: #1F9D63; }

/* 分步面板：只显示当前步。
   旧版 #yemian3 漏了隐藏，第 1 步表单会和「去登录」按钮叠着一起出现 */
body.auth-page .auth-step-panel { display: none; }
body.auth-page .auth-step-panel.is-active { display: block; animation: fadeUp .35s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 完成态 */
body.auth-page .auth-done { text-align: center; padding: 4px 0 2px; }
body.auth-page .auth-done-icon {
    width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(31, 157, 99, .12); color: #1F9D63;
}
body.auth-page .auth-done-icon svg { width: 32px; height: 32px; }
body.auth-page .auth-done h3 { margin: 0 0 6px; font-size: 19px; color: var(--a-ink); font-weight: 700; }
body.auth-page .auth-done p { margin: 0 0 24px; font-size: 13px; color: var(--a-muted); }

/* 底部辅助链接行（返回登录 / 上一步）；
   本页无 card-foot，自带底部留白，避免内容贴卡片边缘 */
body.auth-page .auth-back { margin: 16px 0 14px; text-align: center; font-size: 13px; color: var(--a-muted); }

/* ---------------- 页脚 ---------------- */
body.auth-page .auth-foot { padding: 20px 24px 26px; text-align: center; color: #8A93A3; font-size: 13px; }
body.auth-page .auth-foot a { color: #8A93A3; }
body.auth-page .auth-foot .sep { margin: 0 10px; opacity: .5; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
    body.auth-page .auth-shell { grid-template-columns: 1fr; max-width: 620px; }
    body.auth-page .auth-side { padding: 30px 24px; }
    body.auth-page .auth-side h1 { font-size: 25px; }
    body.auth-page .auth-feats { gap: 10px; }
    body.auth-page .auth-app img { width: 96px; height: 96px; }
}
@media (max-width: 620px) {
    body.auth-page .auth-main { padding: 24px 16px 32px; }
    body.auth-page .auth-top-inner { padding: 14px 16px; }
    body.auth-page .auth-brand-mark b { font-size: 19px; }
    body.auth-page .auth-brand-mark em { display: none; }
    body.auth-page .auth-feats { grid-template-columns: repeat(2, 1fr); }
    body.auth-page .auth-card-head,
    body.auth-page .auth-card-head.center,
    body.auth-page .auth-card-body,
    body.auth-page .auth-card-foot { padding-left: 20px; padding-right: 20px; }
    body.auth-page .auth-card-head { padding-top: 22px; }
    body.auth-page .auth-form .grid2 { grid-template-columns: 1fr; }
    body.auth-page .auth-actions .btn-auth { width: 100%; }
    body.auth-page .auth-actions.center-actions { grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
    body.auth-page .auth-foot { font-size: 12px; }
}
