/* 登录 / 注册共用：布局、卡片、Layui 表单基础 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --navy: #0a1628;
    --royal: #1a6cff;
    --royal-hover: #0d56d6;
    --text: #2c2c2c;
    --text-sub: #8c8c8c;
    --muted: #9ca3af;
    --border: #e2e6ed;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial,
    sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.auth-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background-color: #dde9fc;
    background-image: url("/statics/image/background_pre_1.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
}

.auth-card-split {
    display: flex;
    min-height: 700px;
    height: 700px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    box-shadow:
            0 2px 4px rgba(15, 23, 42, 0.06),
            0 16px 40px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.auth-card-aside {
    position: relative;
    flex: 0 0 44%;
    min-width: 0;
    background-color: #050a14;
    background-image: url("/statics/image/main_pre_1.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    clip-path: polygon(0 0, 100% 0, 76% 100%, 0 100%);
    padding: 1.75rem 1.25rem 1.75rem 1.75rem;
    color: #fff;
}

.auth-card-aside-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    position: relative;
    z-index: 1;
}

.auth-card-brand-mark {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    opacity: 0.98;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.auth-card-main {
    flex: 1;
    padding: 2.25rem 2.5rem 2rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.auth-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--text);
}

.field-password-wrap {
    position: relative;
}

.field-password-wrap .layui-input {
    padding-right: 44px;
}

.field-toggle-pwd {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.field-toggle-pwd:hover {
    color: var(--royal);
}

.field-toggle-pwd svg {
    width: 20px;
    height: 20px;
}

.form-forgot {
    text-align: right;
    margin: -0.25rem 0 1rem;
}

.form-forgot a {
    color: var(--royal);
    font-size: 0.8125rem;
    text-decoration: none;
}

.form-forgot a:hover {
    text-decoration: underline;
}

.auth-footer {
    margin-top: 1.35rem;
    text-align: center;
    font-size: 0.72rem;
    line-height: 1.75;
    color: var(--text-sub);
}

.auth-footer a {
    color: var(--royal);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-footer-sub {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.68rem;
    color: #a8a8a8;
}

.auth-cross-link {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.8125rem;
}

.auth-cross-link a {
    color: var(--royal);
    text-decoration: none;
}

.auth-cross-link a:hover {
    text-decoration: underline;
}

.auth-card-main .layui-input-block.auth-layui-input-block {
    margin-left: 0 !important;
}

.auth-card-main .layui-form-item {
    margin-bottom: 1rem;
}

.auth-card-main .layui-input {
    height: 46px;
    line-height: 46px;
    border-radius: 4px;
}

.auth-card-main .field-password-wrap .layui-input {
    padding-right: 44px;
}

.auth-layui-btn-primary {
    background-color: var(--royal) !important;
    border-color: var(--royal) !important;
}

.auth-layui-btn-primary:hover {
    opacity: 0.92;
}

@media (max-width: 768px) {
    .auth-card-split {
        flex-direction: column;
        min-height: 0;
        height: auto;
    }

    .auth-card-aside {
        flex: none;
        clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
        min-height: 200px;
        padding: 1.25rem 1.25rem 2.5rem;
    }

    .auth-card-aside-inner {
        min-height: 0;
    }

    .auth-card-main {
        padding: 1.75rem 1.5rem 1.5rem;
    }
}

/* 登录页 */

.login-subtabs {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-bottom: 1.5rem;
}

.login-subtabs-item {
    font-size: 0.9375rem;
    color: var(--text-sub);
    padding-bottom: 0.5rem;
    position: relative;
    user-select: none;
}

.login-subtabs-item.is-active {
    color: var(--royal);
    font-weight: 600;
}

.login-subtabs-item.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--royal);
    border-radius: 1px;
}
