/* =========================================================
   苗境实时监控系统 · 认证页（登录 / 注册）
   ========================================================= */

.auth-wrap {
    display: flex;
    min-height: 100vh;
    background: #06231C;
    overflow: hidden;
}

/* ===================== 左侧品牌视觉区 ===================== */
.auth-visual {
    flex: 1.12;
    position: relative;
    background: linear-gradient(158deg, #0B3D2E 0%, #06261E 52%, #041A14 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 46px 56px;
    color: #fff;
    min-width: 0;
}
.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 22%, rgba(30, 190, 137, .3), transparent 44%),
        radial-gradient(circle at 82% 74%, rgba(28, 140, 168, .26), transparent 46%),
        radial-gradient(circle at 52% 6%, rgba(224, 155, 45, .13), transparent 38%);
    pointer-events: none;
}
/* 网格 */
.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 44% 46%, #000 12%, transparent 74%);
    -webkit-mask-image: radial-gradient(circle at 44% 46%, #000 12%, transparent 74%);
    pointer-events: none;
}
.auth-visual > * { position: relative; z-index: 1; }

.av-brand { display: flex; align-items: center; gap: 13px; }
.av-brand .av-logo {
    width: 46px; height: 46px;
    border-radius: 14px;
    background: linear-gradient(140deg, #2BD79B, #0A7A55 64%, #12907F);
    display: grid; place-items: center;
    font-size: 23px; color: #fff;
    box-shadow: 0 8px 22px rgba(15, 155, 108, .45), inset 0 1px 0 rgba(255,255,255,.3);
}
.av-brand .av-name { font-size: 19px; font-weight: 700; letter-spacing: .6px; }
.av-brand .av-sub { font-size: 10.5px; color: #6FA893; letter-spacing: 2.1px; text-transform: uppercase; }

.av-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 560px; }
.av-slogan { font-size: 34px; font-weight: 700; letter-spacing: -.6px; line-height: 1.32; margin-bottom: 14px; }
.av-slogan em {
    font-style: normal;
    background: linear-gradient(100deg, #45E5AE, #9BE8C8 48%, #F0C97A);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.av-text { color: #9CC4B4; font-size: 13.5px; line-height: 1.9; margin-bottom: 30px; max-width: 470px; }

.av-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; max-width: 520px; }
.av-feat {
    display: flex; align-items: center; gap: 11px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 13px;
    backdrop-filter: blur(6px);
    transition: all .26s var(--ease);
}
.av-feat:hover { background: rgba(255,255,255,.1); transform: translateX(3px); }
.av-feat i {
    width: 32px; height: 32px;
    border-radius: 9px;
    display: grid; place-items: center;
    background: rgba(45, 215, 155, .14);
    color: #4FE0AF;
    font-size: 15px;
    flex: 0 0 32px;
}
.av-feat .af-name { font-size: 13px; font-weight: 600; }
.av-feat .af-desc { font-size: 11px; color: #7FA99A; }

.av-foot { display: flex; align-items: center; gap: 16px; font-size: 11.5px; color: #5F8C7B; }
.av-foot .avf-div { width: 1px; height: 12px; background: rgba(255,255,255,.14); }

/* 浮动数据卡 */
.av-float {
    position: absolute;
    right: 44px;
    bottom: 96px;
    width: 216px;
    background: rgba(10, 50, 38, .72);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;
    padding: 14px 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(0,0,0,.34);
    animation: fadeUp .8s var(--ease) both .3s;
    z-index: 2;
}
.av-float .af-t { font-size: 11.5px; color: #7FA99A; display: flex; align-items: center; gap: 6px; }
.av-float .af-v { font-size: 25px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 5px 0 8px; }
.av-float .af-bars { display: flex; align-items: flex-end; gap: 4px; height: 38px; }
.av-float .af-bars i {
    flex: 1;
    background: linear-gradient(180deg, #45E5AE, rgba(69, 229, 174, .22));
    border-radius: 3px 3px 0 0;
    transform-origin: bottom;
    animation: barGrow .8s var(--ease) both;
}

/* ===================== 右侧表单区 ===================== */
.auth-panel {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 40px;
    position: relative;
    min-width: 0;
}
.auth-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(15,155,108,.3), transparent);
}
.auth-form { width: 100%; max-width: 392px; }

.af-head { margin-bottom: 26px; }
.af-welcome { font-size: 25px; font-weight: 700; letter-spacing: -.4px; color: var(--ink); }
.af-desc { font-size: 13px; color: var(--text-3); margin-top: 7px; }

.af-field { margin-bottom: 15px; }
.af-field .af-label {
    display: flex; align-items: center; gap: 5px;
    font-size: 12.5px; font-weight: 600; color: var(--text-2);
    margin-bottom: 7px;
}
.af-input { position: relative; }
.af-input > i.af-ico {
    position: absolute;
    left: 13px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-4);
    font-size: 15px;
    transition: color .2s var(--ease);
    pointer-events: none;
}
.af-input input, .af-input select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 14px 0 40px;
    font-size: 14px;
    background: #FBFDFC;
    transition: all .22s var(--ease);
}
.af-input input:focus, .af-input select:focus {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(15, 155, 108, .11);
}
.af-input input:focus ~ i.af-ico { color: var(--brand); }
.af-input .af-eye {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-4);
    font-size: 15px;
    cursor: pointer;
    padding: 4px;
    transition: color .2s var(--ease);
}
.af-input .af-eye:hover { color: var(--brand-600); }

.af-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.af-check { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.af-check input { accent-color: var(--brand); width: 15px; height: 15px; cursor: pointer; }
.af-link { margin-left: auto; font-size: 12.5px; font-weight: 600; }

.af-submit {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(140deg, #17AC79, var(--brand-600) 62%, #0A6E4D);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 22px rgba(15, 155, 108, .34);
    transition: all .24s var(--ease);
    position: relative;
    overflow: hidden;
}
.af-submit:hover { box-shadow: 0 12px 30px rgba(15, 155, 108, .46); transform: translateY(-1px); }
.af-submit:active { transform: translateY(0); }
.af-submit:disabled { opacity: .68; cursor: not-allowed; transform: none; }
.af-submit .spinner-sm {
    width: 15px; height: 15px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .65s linear infinite;
}

.af-alt {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
    color: var(--text-3);
}
.af-alt a { font-weight: 700; }

.af-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--text-4);
    font-size: 11.5px;
}
.af-sep::before, .af-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 演示账号卡 */
.af-demo {
    margin-top: 18px;
    padding: 13px 15px;
    background: linear-gradient(120deg, #F2FBF7, #F8FDFB);
    border: 1px dashed #B9DFCF;
    border-radius: 12px;
}
.af-demo .ad-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-700);
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 9px;
}
.af-demo .ad-list { display: flex; flex-wrap: wrap; gap: 7px; }
.af-demo .ad-item {
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #CFEAE0;
    color: var(--text-2);
    cursor: pointer;
    transition: all .18s var(--ease);
    font-family: "SFMono-Regular", Consolas, monospace;
}
.af-demo .ad-item:hover { border-color: var(--brand); color: var(--brand-700); background: var(--brand-50); }
.af-demo .ad-item b { color: var(--brand-700); font-weight: 700; }

/* 注册步骤指示 */
.af-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.af-steps .afs-item {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: var(--line);
    transition: background .3s var(--ease);
}
.af-steps .afs-item.on { background: linear-gradient(90deg, var(--brand-300), var(--brand)); }

/* 密码强度 */
.pwd-strength { display: flex; gap: 5px; margin-top: 8px; align-items: center; }
.pwd-strength .ps-bar {
    flex: 1;
    height: 4px;
    border-radius: 3px;
    background: var(--line);
    transition: background .26s var(--ease);
}
.pwd-strength .ps-text { font-size: 11.5px; color: var(--text-3); flex: 0 0 auto; min-width: 30px; text-align: right; }

/* 表单校验提示 */
.af-err { font-size: 11.5px; color: var(--danger); margin-top: 6px; display: flex; align-items: center; gap: 5px; }

/* 验证码 */
.captcha-row { display: flex; gap: 10px; }
.captcha-row .af-input { flex: 1; }
.captcha-img {
    width: 108px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: linear-gradient(120deg, #EAF6F1, #F6FBF9);
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--brand-700);
    cursor: pointer;
    user-select: none;
    font-family: "SFMono-Regular", Consolas, monospace;
    flex: 0 0 108px;
    transition: all .2s var(--ease);
}
.captcha-img:hover { border-color: var(--brand-300); }

/* 响应式 */
@media (max-width: 1000px) {
    .auth-visual { display: none; }
    .auth-panel { flex: 1; }
    .auth-panel::before { display: none; }
}
@media (max-width: 560px) {
    .auth-panel { padding: 28px 20px; }
    .af-welcome { font-size: 22px; }
}
