@charset "utf-8";
/* ==========================================================================
   提桶软件 · 账号页样式(登录 / 注册 / 找回密码 共用)
   设计参考: 腾讯云登录页 —— 左侧品牌说明区 + 右侧白底表单卡片
   与 site.css 共用同一套品牌色(主色 #2b6cf6, 行动色 #ff9a3c)
   ========================================================================== */

:root {
    --brand: #2b6cf6;
    --brand-dark: #1b53d1;
    --brand-deep: #0f3a95;
    --brand-light: #eef4ff;
    --brand-line: #c9dbff;
    --ink: #1d2734;
    --ink-2: #5b6a7d;
    --ink-3: #8d9aab;
    --line: #e6ebf3;
    --line-input: #dfe5ee;
    --danger: #e8483b;
    --page: #f6f9fd;
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color .18s;
}

a:hover {
    color: var(--brand-dark);
}

img {
    border: 0;
    max-width: 100%;
}

input, button {
    font-family: inherit;
}

/* -------------------------------------------------------------- 整体两栏骨架 */
.auth-shell {
    display: flex;
    min-height: 100vh;
    background: #fff;
}

/* -------------------------------------------------------------- 左: 品牌说明区 */
.auth-visual {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    padding: 38px 56px 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(155deg, #eaf2ff 0%, #f4f8ff 46%, #ffffff 100%);
}

/* 背景装饰光斑 */
.auth-visual::before,
.auth-visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-visual::before {
    width: 620px;
    height: 620px;
    right: -220px;
    top: -260px;
    background: radial-gradient(circle at center, rgba(43, 108, 246, .16), rgba(43, 108, 246, 0) 68%);
}

.auth-visual::after {
    width: 460px;
    height: 460px;
    left: -160px;
    bottom: -210px;
    background: radial-gradient(circle at center, rgba(255, 154, 60, .16), rgba(255, 154, 60, 0) 70%);
}

.visual-logo {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.visual-logo img {
    height: 38px;
    width: auto;
    display: block;
}

.visual-body {
    position: relative;
    z-index: 2;
    margin: auto 0;
    max-width: 520px;
    padding: 24px 0;
}

.visual-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border-radius: 13px;
    background: rgba(43, 108, 246, .09);
    border: 1px solid rgba(43, 108, 246, .18);
    color: var(--brand);
    font-size: 12.5px;
    letter-spacing: .3px;
}

.visual-title {
    margin: 18px 0 0;
    font-size: 34px;
    line-height: 1.32;
    font-weight: 700;
    color: #102a5c;
    letter-spacing: .5px;
}

.visual-desc {
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.8;
    color: #4d678f;
    max-width: 430px;
}

.visual-points {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.visual-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #3f5a83;
}

.visual-points .tick {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin-top: 2px;
    border-radius: 50%;
    background: rgba(43, 108, 246, .12);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* 底部 CAD 蓝图插画 */
.visual-art {
    position: absolute;
    right: 4%;
    bottom: -10px;
    width: 400px;
    max-width: 46%;
    z-index: 1;
    opacity: .95;
    pointer-events: none;
}

.visual-foot {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    font-size: 12px;
    color: #9aabc2;
    letter-spacing: .2px;
}

/* -------------------------------------------------------------- 右: 表单区 */
.auth-panel {
    flex: 0 0 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 44px;
    background: #fff;
    border-left: 1px solid #eef2f8;
}

.auth-inner {
    width: 100%;
    max-width: 372px;
}

/* 手机端才出现的品牌条 */
.panel-brand {
    display: none;
    margin-bottom: 26px;
}

.panel-brand img {
    height: 34px;
}

/* 顶部页签: 登录 / 注册 */
.auth-tabs {
    display: flex;
    align-items: flex-end;
    gap: 30px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
}

.auth-tabs a {
    position: relative;
    padding: 0 2px 13px;
    font-size: 16.5px;
    color: #7d8ca3;
    font-weight: 500;
    white-space: nowrap;
}

.auth-tabs a:hover {
    color: var(--ink-2);
}

.auth-tabs a.is-active {
    color: var(--ink);
    font-weight: 600;
}

.auth-tabs a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--brand);
}

.auth-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: .3px;
}

.auth-subtitle {
    margin: 8px 0 0;
    font-size: 13.5px;
    color: var(--ink-3);
}

/* -------------------------------------------------------------- 表单字段 */
.auth-form {
    margin-top: 24px;
}

.field {
    margin-bottom: 16px;
}

.field > label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
}

.field > label .req {
    color: var(--danger);
    margin-left: 2px;
}

.control {
    position: relative;
    display: flex;
    align-items: center;
}

.control .ico {
    position: absolute;
    left: 13px;
    width: 18px;
    height: 18px;
    color: #9dabbd;
    pointer-events: none;
    transition: color .18s;
}

.control input[type="text"],
.control input[type="password"],
.control input[type="email"] {
    width: 100%;
    height: 45px;
    padding: 0 14px 0 41px;
    border: 1px solid var(--line-input);
    border-radius: 8px;
    background: #fff;
    font-size: 14.5px;
    color: var(--ink);
    transition: border-color .18s, box-shadow .18s;
}

.control input::placeholder {
    color: #aab6c6;
    font-size: 14px;
}

.control input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(43, 108, 246, .13);
}

.control input:focus + .ico,
.control:focus-within .ico {
    color: var(--brand);
}

/* 右侧占位: 显示密码 / 验证码图片 / 获取验证码 */
.control.has-trail input {
    padding-right: 48px;
}

.trail {
    position: absolute;
    right: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #9dabbd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .18s, background .18s;
}

.icon-btn:hover {
    color: var(--brand);
    background: var(--brand-light);
}

/* 图片验证码 */
.captcha-field .control input {
    padding-right: 148px;
}

.captcha-box {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 6px;
    border-left: 1px solid var(--line);
}

.captcha-box img {
    width: 104px;
    height: 34px;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    background: #f4f8ff;
    border: 1px solid #e8eefa;
}

.captcha-box .refresh {
    font-size: 12px;
    color: var(--ink-3);
    cursor: pointer;
    white-space: nowrap;
}

.captcha-box .refresh:hover {
    color: var(--brand);
}

/* 获取邮箱验证码按钮 */
.send-code {
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--brand-line);
    border-radius: 6px;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: all .18s;
}

.send-code:hover {
    background: #e3edff;
    border-color: #a9c6ff;
}

.send-code[disabled] {
    background: #f4f6fa;
    border-color: var(--line);
    color: #a8b3c3;
    cursor: not-allowed;
}

/* 错误态 */
.field.is-error input {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(232, 72, 59, .1);
}

.field-err {
    display: none;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--danger);
    line-height: 1.5;
}

.field.is-error .field-err {
    display: block;
}

/* 密码强度 */
.pw-meter {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--ink-3);
}

.pw-meter .bar {
    flex: 0 0 auto;
    width: 34px;
    height: 4px;
    border-radius: 2px;
    background: #e9eef6;
    transition: background .2s;
}

.pw-meter[data-level="1"] .bar:nth-child(1) {
    background: #f5700a;
}

.pw-meter[data-level="2"] .bar:nth-child(-n+2) {
    background: #ffb03a;
}

.pw-meter[data-level="3"] .bar {
    background: #22b07d;
}

.pw-meter .txt {
    margin-left: 2px;
}

/* 表单整体提示条 */
.form-alert {
    display: none;
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff4f2;
    border: 1px solid #ffd9d4;
    color: #cf3a2c;
    font-size: 13px;
    line-height: 1.5;
}

.form-alert.is-ok {
    background: #f1fbf6;
    border-color: #c8ecd9;
    color: #1a8f63;
}

.form-alert.is-show {
    display: block;
}

/* -------------------------------------------------------------- 按钮 */
.btn-submit {
    position: relative;
    width: 100%;
    height: 46px;
    margin-top: 22px;
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .5px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(43, 108, 246, .26);
    transition: background .18s, transform .18s, box-shadow .18s;
}

.btn-submit:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(43, 108, 246, .3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit[disabled] {
    background: #b6cbf5;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-submit .spinner {
    display: none;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, .55);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: -2px;
    animation: spin .7s linear infinite;
}

.btn-submit.is-loading .spinner {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* -------------------------------------------------------------- 辅助链接 */
.auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    font-size: 13.5px;
}

.auth-links .left {
    color: var(--ink-3);
}

.auth-links .split {
    margin: 0 8px;
    color: #e2e8f2;
}

.auth-note {
    margin: 20px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: #9dabbd;
    text-align: left;
}

.auth-note a {
    color: var(--ink-2);
    text-decoration: underline;
    text-decoration-color: #d7e0ee;
}

.auth-note a:hover {
    color: var(--brand);
}

/* 注册页字段更紧凑 */
.auth-form.is-dense .field {
    margin-bottom: 14px;
}

.auth-form.is-dense .control input {
    height: 43px;
}

/* -------------------------------------------------------------- 响应式 */
/* 超宽屏: 让左侧说明更饱满一些, 避免中间留出大片空白 */
@media (min-width: 1600px) {
    .auth-visual {
        padding: 44px 72px 34px;
    }

    .visual-body {
        max-width: 620px;
    }

    .visual-title {
        font-size: 38px;
    }

    .visual-desc {
        font-size: 16px;
        max-width: 480px;
    }

    .visual-points li {
        font-size: 15px;
    }

    .visual-art {
        width: 520px;
        right: 5%;
    }
}

/* 较矮的屏幕: 插画缩小, 避免和左侧文案挨太近 */
@media (max-height: 780px) {
    .visual-art {
        width: 320px;
        bottom: -16px;
        opacity: .9;
    }
}

@media (max-width: 1080px) {
    .auth-visual {
        padding: 32px 40px 26px;
    }

    .visual-title {
        font-size: 28px;
    }

    .auth-panel {
        flex: 0 0 440px;
        padding: 40px 32px;
    }
}

@media (max-width: 880px) {
    .auth-shell {
        flex-direction: column;
    }

    .auth-visual {
        display: none;
    }

    .auth-panel {
        flex: 1 1 auto;
        border-left: 0;
        padding: 32px 22px 40px;
        align-items: flex-start;
        background: linear-gradient(180deg, #f2f7ff 0%, #ffffff 220px);
    }

    .auth-inner {
        max-width: 420px;
        margin: 0 auto;
    }

    .panel-brand {
        display: block;
    }

    .auth-title {
        font-size: 20px;
    }
}

@media (max-width: 420px) {
    .auth-panel {
        padding: 24px 16px 32px;
    }

    .captcha-field .control input {
        padding-right: 132px;
    }

    .captcha-box img {
        width: 88px;
        height: 32px;
    }

    .captcha-box .refresh {
        display: none;
    }
}
