:root {
    --u-primary: #2563eb;
    --u-primary-hover: #1d4ed8;
    --u-bg: #f1f5f9;
    --u-text: #0f172a;
    --u-text-sub: #64748b;
    --u-border: #e2e8f0;
    --u-card-radius: 16px;
    --u-input-radius: 10px;
}

body.auth-body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--u-bg);
    min-height: 100vh;
    padding: 32px 16px;
    color: var(--u-text);
}

.auth-container {
    max-width: 420px;
}

/* ── Brand / heading ───────────────────────────── */
.auth-brand {
    margin-bottom: 24px;
}

.auth-logo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background-color: var(--u-primary);
    color: #fff;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--u-text);
}

.auth-subtitle {
    font-size: 14px;
    color: var(--u-text-sub);
    margin: 0;
}

/* ── Card ──────────────────────────────────────── */
.auth-card {
    background: #fff;
    border-radius: var(--u-card-radius);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    padding: 28px 28px 32px;
}

/* ── Test account box ──────────────────────────── */
.test-account-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.test-account-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--u-primary);
    margin: 0 0 4px;
}

.test-account-line {
    font-size: 12px;
    color: #1e3a8a;
    margin: 0;
}

.test-account-fill {
    flex-shrink: 0;
    border: 0;
    background: var(--u-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
}

.test-account-fill:hover {
    background: var(--u-primary-hover);
}

/* ── Form ──────────────────────────────────────── */
.form-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--u-text);
}

.label-note {
    font-weight: 400;
    color: var(--u-text-sub);
    font-size: 12px;
}

.input-icon-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    pointer-events: none;
}

.form-control {
    border: 1px solid var(--u-border);
    border-radius: var(--u-input-radius);
    padding: 12px 16px;
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}

.form-control.has-icon {
    padding-left: 44px;
}

.form-control:focus {
    border-color: var(--u-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.password-addon {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    z-index: 5;
}

.password-addon:hover {
    color: var(--u-primary);
}

/* ── Buttons ───────────────────────────────────── */
.btn-auth-primary {
    background-color: var(--u-primary);
    color: #fff;
    border: 0;
    border-radius: var(--u-input-radius);
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    margin-top: 8px;
    transition: background-color .2s;
}

.btn-auth-primary:hover {
    background-color: var(--u-primary-hover);
    color: #fff;
}

.btn-auth-primary:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    opacity: .8;
}

.btn-auth-outline {
    display: block;
    text-align: center;
    background: #fff;
    color: var(--u-text);
    border: 1px solid var(--u-border);
    border-radius: var(--u-input-radius);
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s, border-color .2s;
}

.btn-auth-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--u-text);
}

/* ── Divider ───────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--u-text-sub);
    font-size: 13px;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--u-border);
}

.auth-divider:not(:empty)::before {
    margin-right: .75em;
}

.auth-divider:not(:empty)::after {
    margin-left: .75em;
}

/* ── Footer link ───────────────────────────────── */
.auth-foot-link {
    display: block;
    text-align: center;
    margin-top: 24px;
    color: var(--u-text-sub);
    font-size: 14px;
    text-decoration: none;
}

.auth-foot-link:hover {
    color: var(--u-primary);
}
