@charset "utf-8";
/* ==========================================================================
   西仪服 · 内部管理系统 登录页
   配色与系统保持一致（取值来自项目 css/style.min.css 与 css/skins.css）：
     主操作色 #1ab394 / 链接蓝 #1c84c6 / 顶栏 #3c8dbc
     侧栏深色 #2f4050 / 页面底色 #f3f3f4 / 边框 #e7eaec
     正文 #676a6c / 次要文字 #a7aaab
   ========================================================================== */

:root {
    --brand: #1ab394;
    --brand-dark: #18a689;
    --nav: #3c8dbc;
    --side: #2f4050;
    --bg: #f3f3f4;
    --border: #e7eaec;
    --border-input: #e5e6e7;
    --text: #676a6c;
    --text-light: #a7aaab;
}

html, body { height: 100%; }

body.login-page {
    margin: 0;
    min-height: 100%;
    background-color: var(--bg);
    color: var(--text);
    font-family: "open sans", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
}

.login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ------------------------------------------------------------ 顶部栏 */
.login-topbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 24px;
    background-color: var(--nav);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.login-brand {
    display: flex;
    align-items: baseline;
    color: #fff;
}

.login-brand .name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .06em;
}

.login-brand .sep {
    margin: 0 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, .4);
}

.login-brand .sub {
    font-size: 13px;
    color: rgba(255, 255, 255, .78);
    letter-spacing: .04em;
}

/* ------------------------------------------------------------ 主体 */
.login-body {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 24px;
    background: linear-gradient(180deg, #eef4f8 0%, var(--bg) 220px);
}

.login-card {
    width: 380px;
    max-width: 100%;
    padding: 26px 28px 22px;
    background-color: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--brand);
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04), 0 10px 24px -16px rgba(47, 64, 80, .35);
}

.login-card h1 {
    margin: 0 0 20px;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--side);
    letter-spacing: .04em;
}

/* ------------------------------------------------------------ 表单 */
.login-field {
    position: relative;
    margin-bottom: 14px;
}

.login-field > .fa {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #c2c7cc;
    pointer-events: none;
}

/* 密码框：显示/隐藏 切换按钮 */
.login-field-pwd .form-control {
    padding-right: 34px;
}

.login-field .pwd-eye {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 36px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 14px;
    line-height: 1;
    color: #c2c7cc;
    cursor: pointer;
    transition: color .15s;
}

.login-field .pwd-eye:hover,
.login-field .pwd-eye:focus {
    color: var(--brand);
    outline: none;
}

.login-card .form-control {
    display: block;
    width: 100%;
    height: 38px;
    margin: 0;
    padding: 6px 10px 6px 32px;
    border: 1px solid var(--border-input);
    border-radius: 2px;
    background-color: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}

.login-card .form-control::-webkit-input-placeholder { color: #b3b8bd; }
.login-card .form-control::placeholder { color: #b3b8bd; }
.login-card .form-control:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(26, 179, 148, .1);
}

.login-card .form-control:-webkit-autofill {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
}

/* 验证码 */
.login-captcha {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.login-captcha .login-field {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.login-captcha a {
    flex: 0 0 100px;
    display: block;
    height: 38px;
    border: 1px solid var(--border-input);
    border-radius: 2px;
    overflow: hidden;
    background-color: #fff;
    line-height: 0;
    text-decoration: none;
}

.login-captcha img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    cursor: pointer;
}

/* 记住我 */
.login-remember {
    display: inline-block;
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: normal;
    color: var(--text);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.login-remember input[type="checkbox"] {
    position: relative;
    top: 2px;
    margin: 0 5px 0 0;
    cursor: pointer;
}

/* 登录按钮 */
.btn-login {
    width: 100%;
    height: 40px;
    margin-top: 20px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background-color: var(--brand);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: .3em;
    transition: background-color .15s;
}

.btn-login:hover,
.btn-login:focus {
    background-color: var(--brand-dark);
    color: #fff;
}

.btn-login:active {
    background-color: #16967e;
}

.btn-login:focus {
    outline: none;
}

/* 注册入口 */
.login-alt {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
}

.login-alt a {
    color: #1c84c6;
    text-decoration: none;
}

.login-alt a:hover {
    color: #1a7bb9;
    text-decoration: underline;
}

/* 底部版权 */
.login-footer {
    flex: 0 0 auto;
    padding: 0 16px 22px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-light);
    text-align: center;
    background-color: var(--bg);
}

/* 校验提示 */
label.error {
    position: inherit;
    display: block;
    margin: 5px 0 0;
    font-size: 12px;
    font-weight: normal;
    color: #ed5565;
}

label.error i { margin-right: 4px; }

/* ------------------------------------------------------------ 响应式 */
@media (max-width: 480px) {
    .login-topbar { padding: 0 16px; }
    .login-body { padding: 28px 16px 20px; }
    .login-card { padding: 22px 20px 18px; }
    .login-captcha a { flex-basis: 92px; }
}
