/* ==========================================================================
   铁心安心理测评 — 后台登录页品牌样式
   仅作用于后台登录视图，不涉及任何登录/鉴权逻辑
   ========================================================================== */

body.txa-login-body {
    margin: 0;
    padding: 0;
    background: #4fb0ee;
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.txa-login {
    position: relative;
    box-sizing: border-box;
    min-height: 100vh;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: var(--txa-login-bg, url('login-bg.jpg')) center center / cover no-repeat, #4fb0ee;
}

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

/* 右上角轻微压暗，保证白色版权文字在浅色天空上也能看清 */
.txa-login::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 78, 150, 0.10) 0%, rgba(12, 78, 150, 0) 30%, rgba(12, 78, 150, 0.12) 100%);
    pointer-events: none;
}

/* ---------- 左上角品牌 ---------- */
.txa-brand {
    position: absolute;
    top: 32px;
    left: 40px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.txa-brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 14px rgba(10, 67, 130, 0.18), inset 0 0 0 2px rgba(255, 255, 255, 0.6);
    color: #1a5fc4;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0;
    flex: 0 0 auto;
}

.txa-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    text-shadow: 0 1px 4px rgba(8, 60, 118, 0.35);
}

.txa-brand-text strong {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.txa-brand-text span {
    margin-top: 2px;
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0.92;
}

/* ---------- 右侧登录卡片 ---------- */
.txa-login-card {
    position: relative;
    z-index: 2;
    width: 420px;
    max-width: 100%;
    padding: 40px 36px 26px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 60px rgba(10, 66, 128, 0.20);
}

.txa-card-head {
    text-align: center;
    margin-bottom: 22px;
}

.txa-card-head h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 4px;
    color: #1a5fc4;
    text-indent: 4px;
}

.txa-card-head p {
    margin: 8px 0 0;
    font-size: 14px;
    letter-spacing: 1px;
    color: #2f6fbf;
}

/* 所属路局（只读展示，不参与提交） */
.txa-org {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 13px;
    border: 1px solid rgba(178, 209, 238, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    color: #33507a;
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.txa-org i {
    color: #7ea6cc;
    font-size: 14px;
    flex: 0 0 auto;
}

.txa-org span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.txa-org:focus-within {
    border-color: #58a6f8;
    box-shadow: 0 0 0 3px rgba(88, 166, 248, 0.16);
}

.txa-org-input {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: #33507a;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.txa-org-input::placeholder {
    color: #a8bdd4;
}

.txa-org-reset {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    margin-left: 4px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #7ea6cc;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.txa-org-reset:hover {
    background: #eef6fd;
    color: #2f8bef;
}

.txa-org-reset[hidden] {
    display: none;
}

/* ---------- 表单 ---------- */
.txa-form {
    margin-top: 22px;
}

.txa-field {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 13px;
    margin-bottom: 12px;
    border: 1px solid #e4eef9;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.txa-field:focus-within {
    border-color: #58a6f8;
    box-shadow: 0 0 0 3px rgba(88, 166, 248, 0.16);
}

.txa-field.has-error {
    border-color: #f56c6c;
    background: #fff7f7;
}

.txa-field > i {
    width: 18px;
    flex: 0 0 auto;
    color: #9db4d0;
    font-size: 14px;
    text-align: center;
}

.txa-field .form-control.txa-input {
    flex: 1 1 auto;
    width: 1%;
    height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    color: #243b53;
    outline: none;
}

.txa-field .form-control.txa-input:focus {
    border: 0;
    box-shadow: none;
    outline: none;
}

.txa-field .form-control.txa-input::placeholder {
    color: #a8bdd4;
}

/* 验证码 */
.txa-field-captcha .txa-input {
    min-width: 0;
}

.txa-field-captcha img {
    display: block;
    height: 40px;
    width: auto;
    margin-left: 8px;
    border-radius: 6px;
    background: #eef6fd;
    cursor: pointer;
    flex: 0 0 auto;
}

/* 登录按钮 */
.txa-form .txa-btn {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 22px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #4aa9f5 0%, #2f8bef 100%);
    box-shadow: 0 10px 22px rgba(47, 139, 239, 0.30);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 8px;
    text-indent: 8px;
    line-height: 46px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.txa-form .txa-btn:hover,
.txa-form .txa-btn:focus {
    background: linear-gradient(90deg, #3f9ff2 0%, #1f7fe8 100%);
    box-shadow: 0 12px 26px rgba(47, 139, 239, 0.38);
    color: #fff;
    outline: none;
}

.txa-form .txa-btn:active {
    transform: translateY(1px);
}

.txa-form .txa-btn[disabled],
.txa-form .txa-btn.disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.txa-agreement {
    margin: 14px 0 0;
    text-align: center;
    font-size: 12px;
    color: #5b7ea6;
}

.txa-agreement a {
    color: #1a5fc4;
    text-decoration: none;
}

.txa-agreement a:hover {
    text-decoration: underline;
}

/* ---------- 版权 ---------- */
.txa-copyright {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 2;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 5px rgba(8, 60, 118, 0.4);
    pointer-events: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .txa-login {
        justify-content: center;
        padding: 24px 20px 64px;
    }

    .txa-brand {
        position: static;
        margin-bottom: 26px;
        justify-content: center;
    }

    .txa-login {
        flex-direction: column;
    }

    .txa-brand-logo {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .txa-brand-text strong {
        font-size: 17px;
    }

    .txa-login-card {
        width: 100%;
        max-width: 420px;
        padding: 30px 22px 22px;
        border-radius: 20px;
    }

    .txa-card-head h1 {
        font-size: 25px;
    }
}

@media (max-height: 640px) and (min-width: 901px) {
    .txa-login-card {
        padding: 26px 32px 20px;
    }

    .txa-card-head {
        margin-bottom: 14px;
    }

    .txa-copyright {
        bottom: 8px;
    }
}
