/* 批量头像页样式：访问密码登录页 + 左右分栏的卡密输入与处理列表 */
:root {
    --page-bg: #f3f4f7;
    --surface: #ffffff;
    --surface-muted: #f6f7f9;
    --border: #e3e6eb;
    --border-strong: #d0d5dd;
    --text: #1d2433;
    --text-secondary: #5f6877;
    --text-muted: #656d7b;
    --text-disabled: #a3a9b4;
    --primary: #3a5bd0;
    --primary-hover: #2f4cb5;
    --primary-disabled: #9fb1ea;
    --primary-soft: #eef2fd;
    --primary-soft-border: #d5def9;
    --success: #0d7a45;
    --success-soft: #eaf7f0;
    --danger: #c4321f;
    --danger-soft: #fdf0ee;
    --radius: 4px;
    --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[v-cloak] {
    display: none;
}

body {
    background: var(--page-bg);
    color: var(--text);
    font: 13px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

button, input, textarea {
    font: inherit;
    color: inherit;
}

.icon {
    width: 14px;
    height: 14px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-fill {
    fill: currentColor;
    stroke: none;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.btn:disabled {
    color: var(--text-disabled);
    cursor: not-allowed;
}

.btn-primary {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    border-color: var(--primary-hover);
    background: var(--primary-hover);
    color: #fff;
}

.btn-primary:disabled {
    border-color: var(--primary-disabled);
    background: var(--primary-disabled);
    color: #fff;
}

.btn-block {
    width: 100%;
    height: 34px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.icon-btn:disabled {
    color: var(--text-disabled);
    cursor: not-allowed;
}

button:focus-visible, .card-input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

/* 登录页 */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 16px;
}

.login-card {
    width: 300px;
    padding: 26px 24px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(29, 36, 51, 0.07);
    text-align: center;
}

.login-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
}

.login-title {
    margin-top: 12px;
    font-size: 17px;
    font-weight: 700;
}

.login-sub {
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 12px;
}

.field-label {
    display: block;
    margin: 20px 0 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
}

.password-box {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 6px 0 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
}

.password-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-soft);
}

.password-box.has-error {
    border-color: var(--danger);
}

.password-lock {
    color: var(--text-disabled);
}

.password-box input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: none;
}

.password-box .icon-btn {
    width: 24px;
    height: 24px;
}

.login-error {
    margin-top: 6px;
    color: var(--danger);
    font-size: 12px;
    text-align: left;
}

.login-card .btn-block {
    margin-top: 16px;
}
