/* ============================================================
   登录 / 注册 / 找回密码 这三页专用的样式。
   单独一个文件、所有类名带 ac- 前缀：首页、定位页、设备页、后台用的都是
   assets/css/style.css，往那个文件里塞这套规则，改坏了全站跟着遭殃。

   版式照他预览稿定的：主色 #3b82f6、按钮和卡片渐变 135deg→#6366f1、
   卡片顶角 24px、输入框和按钮 14px、卡片滑入 .38s cubic-bezier(.34,1.4,.64,1)。

   拼图验证码的样式不在这里 —— 那是 assets/css/captcha.css 的 .scap，
   两个页面各自 <link> 它，同一份控件不能画两遍。
   ============================================================ */

.ac {
    width: 100%; max-width: 420px; margin: 0 auto; padding: 26px 2px 40px;
    display: flex; flex-direction: column; min-height: calc(100vh - 120px);
}
.ac-brand { padding: 6px 4px 16px; }
.ac-brand h2 { margin: 0; font-size: 28px; letter-spacing: -.5px; color: #111827; font-weight: 700; }
.ac-brand p { margin: 8px 0 0; font-size: 14px; color: #6b7280; }

/* 底部滑上来的那张卡。多页表单里同一时刻只显示一步，所以这一步是 JS 换 innerHTML 之外
   唯一会重放的动画 —— 见 account.js 里 reflow 那一手。 */
.ac-sheet {
    margin-top: auto; background: #fff; border-radius: 24px 24px 18px 18px;
    box-shadow: 0 -6px 34px rgba(17, 24, 39, .10), 0 2px 10px rgba(17, 24, 39, .05);
    padding: 20px 18px 24px; position: relative;
}
.ac-sheet.in { animation: acInUp .38s cubic-bezier(.34, 1.4, .64, 1) both; }
@keyframes acInUp { from { transform: translateY(28px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ac-hut { position: absolute; left: 50%; top: 9px; width: 38px; height: 4px; margin-left: -19px;
    border-radius: 2px; background: #e5e7eb; }
.ac-sh-t { margin: 6px 0 14px; font-size: 19px; font-weight: 600; color: #111827; }
.ac-sh-s { margin: -8px 0 14px; font-size: 13px; color: #9ca3af; line-height: 1.6; }

/* 输入框：style.css 里那条 input[type=text] 的通用样式（10px 内边距、8px 圆角）
   会被下面这条压掉 —— .ac .ac-input 是 0-2-0，比 input[type=text] 的 0-1-1 高。 */
.ac-fld { margin-bottom: 13px; }
.ac-fld > label { display: block; font-size: 13px; color: #4b5563; margin-bottom: 6px; }
.ac-input, .ac-fld .ac-input {
    width: 100%; height: 50px; background: #f8fafc; border: 1.5px solid #e5e7eb;
    border-radius: 14px; padding: 0 16px; font-size: 15px; color: #111827; outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s; font-family: inherit;
}
.ac-input:focus { border-color: #3b82f6; background: #fff; box-shadow: 0 0 0 4px rgba(59, 130, 246, .10); }
.ac-input::placeholder { color: #b6bcc7; }
.ac-pw { position: relative; }
.ac-pw .ac-input { padding-right: 52px; }
.ac-eye { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border: 0; padding: 0;
    background: transparent; cursor: pointer; color: #9ca3af; display: flex; align-items: center;
    justify-content: center; border-radius: 8px; }
.ac-eye:active { background: #f3f4f6; }
.ac-err { font-size: 12.5px; color: #ef4444; margin: 6px 0 0; min-height: 17px; }
.ac-hint { font-size: 12.5px; color: #9ca3af; margin: 6px 0 0; }

.ac-btn, .ac .ac-btn {
    width: 100%; height: 50px; border: 0; border-radius: 14px; color: #fff; font-size: 16px;
    font-weight: 600; cursor: pointer; font-family: inherit; letter-spacing: 1px;
    background: linear-gradient(135deg, #3b82f6, #6366f1); box-shadow: 0 6px 18px rgba(59, 130, 246, .30);
    transition: transform .12s, box-shadow .2s, opacity .2s;
}
.ac-btn:active { transform: translateY(1px); }
.ac-btn.off, .ac-btn[disabled] { opacity: .5; box-shadow: none; cursor: default; }
.ac-btn2, .ac .ac-btn2 {
    height: 50px; width: 110px; border: 0; border-radius: 14px; background: #f3f4f6;
    color: #4b5563; font-size: 15px; cursor: pointer; font-family: inherit;
}
.ac-lnk { font-size: 13.5px; color: #3b82f6; text-align: center; cursor: pointer; padding: 10px; }
.ac-foot { text-align: center; font-size: 13px; color: #9ca3af; padding: 14px 0 0; }
.ac-foot b, .ac-foot a { color: #3b82f6; font-weight: 600; }

/* 步骤条 + 上一步那一行 */
.ac-steps { display: flex; align-items: center; gap: 6px; padding: 2px 2px 0; margin-bottom: 12px; }
.ac-steps i { flex: 1; height: 4px; border-radius: 2px; background: #e5e7eb; }
.ac-steps i.on { background: linear-gradient(90deg, #3b82f6, #6366f1); }
.ac-nav { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 12px; }
.ac-nav .ac-bk { border: 0; background: transparent; font-size: 14.5px; color: #4b5563; cursor: pointer;
    font-family: inherit; padding: 6px 4px; }
.ac-nav .ac-nm { font-size: 13px; color: #9ca3af; }
.ac-nav .ac-sp { width: 56px; }

/* 下拉选择（密保问题 / 学校 / 年级） */
.ac-sel { position: relative; }
.ac-box { display: flex; align-items: center; justify-content: space-between; min-height: 50px;
    padding: 0 16px; border-radius: 14px; background: #f8fafc; border: 1.5px solid #e5e7eb;
    font-size: 15px; cursor: pointer; color: #111827; }
.ac-box.empty { color: #b6bcc7; }
.ac-box .ac-ar { color: #9ca3af; font-size: 12px; margin-left: 8px; }
.ac-opts { position: absolute; left: 0; right: 0; top: 54px; z-index: 30; background: #fff;
    border: 1.5px solid #e5e7eb; border-radius: 14px; box-shadow: 0 10px 28px rgba(17, 24, 39, .14);
    overflow: hidden auto; display: none; max-height: 216px; -webkit-overflow-scrolling: touch; }
.ac-opts.on { display: block; }
.ac-opts.up { top: auto; bottom: 54px; box-shadow: 0 -10px 28px rgba(17, 24, 39, .14); }
.ac-opts div { padding: 13px 16px; font-size: 15px; border-bottom: 1px solid #f3f4f6; cursor: pointer; color: #111827; }
.ac-opts div:last-child { border-bottom: 0; }
.ac-opts div.on { color: #3b82f6; font-weight: 600; background: #f5f9ff; }
.ac-opts .ac-src { padding: 8px 16px; font-size: 11.5px; color: #b6bcc7; background: #f8fafc;
    border-bottom: 1px solid #f3f4f6; cursor: default; line-height: 1.5; }

/* 头像那一圈 */
.ac-ava { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ac-ring { width: 78px; height: 78px; border-radius: 50%; border: 2px dashed #cbd5e1;
    background: #f8fafc center/cover no-repeat; display: flex; align-items: center;
    justify-content: center; color: #9ca3af; font-size: 12px; cursor: pointer; flex: 0 0 auto;
    text-align: center; }
.ac-avd { font-size: 12.5px; color: #9ca3af; line-height: 1.6; }
.ac-avd b { color: #4b5563; }
.ac-l2 { margin-top: 6px; font-size: 12.5px; color: #3b82f6; cursor: pointer; text-decoration: underline; }

/* 注册完成那张卡 */
.ac-done { text-align: center; padding: 26px 0 8px; }
.ac-done .ac-ck { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: #10b981;
    display: flex; align-items: center; justify-content: center; color: #fff;
    animation: acPop .42s cubic-bezier(.34, 1.56, .64, 1) both; box-shadow: 0 10px 26px rgba(16, 185, 129, .34); }
@keyframes acPop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.ac-done h3 { margin: 0 0 6px; font-size: 21px; }
.ac-done p { margin: 0; font-size: 13.5px; color: #9ca3af; }

/* 找回密码第二步里那行"密保问题"（只读，所以长得像输入框但不能编辑） */
.ac-ro { display: flex; align-items: center; min-height: 50px; background: #f1f5f9; color: #374151;
    border: 1.5px solid #e5e7eb; border-radius: 14px; padding: 8px 16px; font-size: 15px; }

/* 验证码那一块外面套一层，给个"点这里换一张"的出口 */
.ac-cap { margin-bottom: 13px; }
.ac-cap .ac-cap-t { font-size: 12.5px; color: #9ca3af; margin: 0 0 8px; }

/* ---------- 头像裁剪页：整屏盖住，圆框外面压暗 ---------- */
.ac-crop { position: fixed; left: 0; right: 0; top: 0; bottom: 0; background: #0f141b; display: none;
    flex-direction: column; z-index: 90; }
.ac-crop.on { display: flex; }
.ac-crop .ac-cbar { display: flex; align-items: center; justify-content: space-between;
    padding: 18px 16px 10px; color: #e5e7eb; font-size: 15px; }
.ac-crop .ac-cbar b { font-weight: 600; }
.ac-crop .ac-cbar span { cursor: pointer; padding: 6px 10px; color: #d1d5db; }
.ac-crop .ac-stage { position: relative; flex: 1; overflow: hidden; margin: 0 14px; border-radius: 14px;
    background: #161c25; min-height: 220px; }
.ac-crop .ac-stage img { position: absolute; left: 0; top: 0; max-width: none; touch-action: none;
    user-select: none; -webkit-user-drag: none; }
.ac-crop .ac-mask { position: absolute; inset: 0; pointer-events: none; }
.ac-crop .ac-win { position: absolute; left: 50%; top: 50%; width: 230px; height: 230px;
    margin: -115px 0 0 -115px; border-radius: 50%; box-shadow: 0 0 0 9999px rgba(9, 12, 17, .62);
    border: 1.5px solid rgba(255, 255, 255, .7); }
.ac-crop .ac-grid { position: absolute; left: 50%; top: 50%; width: 230px; height: 230px;
    margin: -115px 0 0 -115px; }
.ac-crop .ac-grid i { position: absolute; background: rgba(255, 255, 255, .22); }
.ac-crop .ac-grid i.v { top: 0; bottom: 0; width: 1px; }
.ac-crop .ac-grid i.h { left: 0; right: 0; height: 1px; }
.ac-crop .ac-ctl { padding: 14px 18px 22px; }
.ac-crop .ac-rowz { display: flex; align-items: center; gap: 10px; color: #9ca3af; font-size: 12.5px; }
.ac-crop input[type=range] { flex: 1; accent-color: #3b82f6; height: 34px; }
.ac-crop .ac-chint { color: #6b7280; font-size: 12px; text-align: center; margin: 8px 0 0; line-height: 1.6; }
.ac-crop .ac-do { display: flex; gap: 10px; margin-top: 14px; }
.ac-crop .ac-do .ac-btn2 { flex: 1; width: auto; background: rgba(255, 255, 255, .1); color: #d1d5db; }
.ac-crop .ac-do .ac-btn { flex: 1.6; }

/* 窄屏（手表旁边那种 320 宽的浏览器）收一档：圆框跟着缩，不然框比屏还宽 */
@media (max-width: 360px) {
    .ac-crop .ac-win, .ac-crop .ac-grid { width: 190px; height: 190px; margin: -95px 0 0 -95px; }
    .ac-brand h2 { font-size: 24px; }
}
