/* ==========================================================================
   CodeShield · 认证页样式（登录 / 注册 / 找回密码）
   1:1 复刻 React AuthFrame：顶部轨道圆环 + 居中毛玻璃卡片
   ========================================================================== */

.cs-auth-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at 50% 15%, #f3fffb 0, #fff 44%, #fff 100%);
    color: var(--fg);
}

.cs-auth-orbit {
    position: absolute;
    border: 1px solid #bfeee1;
    border-radius: 999px;
    pointer-events: none;
    opacity: .6;
}
.cs-orbit-one { width: 720px; height: 720px; left: 50%; top: -480px; transform: translateX(-50%); }
.cs-orbit-two { width: 1030px; height: 1030px; left: 50%; top: -645px; transform: translateX(-50%); opacity: .28; }

.cs-auth-head {
    width: min(calc(100% - 48px), 1080px);
    margin: 0 auto;
    padding: 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}
.cs-brand {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -.03em;
    text-decoration: none;
    color: var(--fg);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.cs-brand-mark {
    width: 26px; height: 26px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: var(--fg);
    color: var(--bg);
    flex: 0 0 auto;
}
.cs-brand-mark svg { width: 14px; height: 14px; }
.cs-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
    transition: color .18s;
}
.cs-auth-back:hover { color: var(--fg); }

.cs-auth-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 82px);
    padding: 35px 16px 70px;
    position: relative;
    z-index: 1;
}

.cs-auth-card {
    width: min(100%, 460px);
    padding: 36px 38px 30px;
    border: 1px solid #e4e9e7;
    border-radius: 20px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 24px 80px rgba(10, 108, 91, .07);
    backdrop-filter: blur(16px);
}
.cs-auth-mark {
    width: 42px; height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: var(--fg);
    color: #fff;
    margin-bottom: 22px;
}
.cs-auth-card h1 {
    font-size: 32px;
    letter-spacing: -.06em;
    line-height: 1.1;
    margin: 0 0 9px;
}
.cs-auth-subtitle {
    color: #747d79;
    font-size: 14px;
    margin: 0 0 28px;
    line-height: 1.5;
}

/* 表单 */
.cs-auth-form { display: flex; flex-direction: column; gap: 17px; }
.cs-auth-form > label { font-size: 13px; font-weight: 600; display: block; }
.cs-auth-form > label > span { display: block; margin-bottom: 7px; }
.cs-auth-field {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    border: 1px solid #dfe5e2;
    border-radius: 11px;
    background: #fff;
    color: #9aa39f;
    transition: border-color .2s, box-shadow .2s;
}
.cs-auth-field:focus-within {
    border-color: #22b895;
    box-shadow: 0 0 0 3px rgba(34, 184, 149, .11);
}
.cs-auth-field .layui-input,
.cs-auth-field input {
    width: 100%;
    border: 0 !important;
    outline: 0;
    background: none !important;
    color: var(--fg);
    font: 14px var(--sans);
    height: 100% !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.cs-auth-field input::placeholder { color: #a9b0ad; }
.cs-auth-field > span:first-child,
.cs-auth-field > i,
.cs-auth-field > svg { flex: 0 0 auto; }

/* 验证码字段 */
.cs-auth-captcha-field { gap: 8px; }
.cs-auth-captcha-field img,
.cs-auth-captcha-field .login-captcha,
.cs-auth-captcha-field .cs-code-btn {
    width: 96px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 7px;
    border: 1px solid var(--border);
    cursor: pointer;
    background: var(--soft);
    object-fit: cover;
}
.cs-auth-captcha-field .cs-code-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--fg);
    background: var(--bg);
    transition: background .18s;
    padding: 0 6px;
    white-space: nowrap;
}
.cs-auth-captcha-field .cs-code-btn:hover { background: var(--soft); }
.cs-auth-captcha-field .cs-code-btn:disabled {
    color: #9aa39f;
    cursor: not-allowed;
    background: var(--soft);
}

/* 行内链接与表单行 */
.cs-inline-link {
    border: 0;
    background: none;
    color: #119b7c;
    font: 600 13px var(--sans);
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}
.cs-inline-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.cs-auth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -4px;
}

/* 邮箱后缀提示 */
.cs-auth-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: -10px;
    margin-bottom: -4px;
}

/* 协议勾选 */
.cs-check-label {
    display: flex !important;
    align-items: flex-start;
    gap: 6px;
    color: #777;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.4;
}
.cs-check-label input { accent-color: #1fb990; margin-top: 1px; }

/* 提交按钮 */
.cs-auth-submit,
.cs-auth-submit.layui-btn {
    height: 46px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0 !important;
    border-radius: 11px !important;
    background: var(--fg) !important;
    color: var(--bg) !important;
    font: 600 14px var(--sans) !important;
    cursor: pointer;
    transition: transform .2s, background .2s;
    width: 100%;
    line-height: normal !important;
    padding: 0 !important;
}
.cs-auth-submit:hover { transform: translateY(-1px); background: #202020 !important; color: #fff !important; opacity: 1 !important; }
.cs-auth-submit:disabled { opacity: .72 !important; cursor: wait !important; transform: none !important; }
.cs-auth-submit svg { transform: rotate(180deg); }

/* 分隔与底部 */
.cs-auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    padding-top: 21px;
    border-top: 1px solid #edf0ef;
    color: #89918e;
    font-size: 13px;
}
.cs-auth-foot {
    color: #9aa39f;
    font: 11px var(--mono);
    margin-top: 22px;
    text-align: center;
}

/* 消息提示 */
.cs-auth-error {
    padding: 9px 11px;
    border: 1px solid #ffc6c6;
    border-radius: 8px;
    background: #fff5f5;
    color: #ae3a3a;
    font-size: 12px;
    line-height: 1.5;
}
.cs-auth-success {
    padding: 9px 11px;
    border: 1px solid #bfead9;
    border-radius: 8px;
    background: #effbf6;
    color: #087c60;
    font-size: 12px;
    line-height: 1.5;
}

/* 发送验证码弹层内容（注册页用） */
.layer-get-code { padding: 25px 25px; font-family: var(--sans); }
.layer-get-code > p { color: #666; font-size: 14px; margin: 0 0 4px; }
.layer-get-code > .lay-code-group { position: relative; padding-right: 108px; margin: 15px 0; }
.layer-get-code > .lay-code-group > .layui-input {
    border-radius: 11px;
    height: 44px;
    line-height: 44px;
    border: 1px solid #dfe5e2;
    background: #fff;
}
.layer-get-code > .lay-code-group > img {
    position: absolute;
    right: 0; top: 0;
    height: 44px;
    width: 96px;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
}

@media (max-width: 520px) {
    .cs-auth-head { width: min(calc(100% - 28px), 1080px); padding: 18px 0; }
    .cs-auth-main { padding-top: 20px; }
    .cs-auth-card { padding: 28px 22px 24px; border-radius: 17px; }
    .cs-auth-card h1 { font-size: 28px; }
    .cs-auth-subtitle { margin-bottom: 23px; }
    .cs-auth-orbit { opacity: .35; }
    .cs-orbit-one { width: 520px; height: 520px; top: -355px; }
    .cs-orbit-two { width: 730px; height: 730px; top: -470px; }
}
