@charset "utf-8";

/* ログイン関連画面（login.php / verify-totp.php / setup.php / reset.php /
   change_password.php）共通のデザイン。外部フレームワーク・CDNは使用せず、
   このファイル1つで完結させている。2026-09-02追加。他ページのCSS
   （style.css / common.css / individual.css）には依存しない。 */

:root {
    --auth-primary: #0c6699;
    --auth-primary-dark: #084b73;
    --auth-text: #1f2d3a;
    --auth-muted: #5b6b7a;
    --auth-bg-start: #eef4f9;
    --auth-bg-end: #dce8f2;
    --auth-card-bg: #ffffff;
    --auth-border: #d7e2ea;
    --auth-error-bg: #fdecea;
    --auth-error-border: #e2a19b;
    --auth-error-text: #9a3b32;
    --auth-notice-bg: #eef6fb;
    --auth-notice-border: #bcdcee;
    --auth-notice-text: #245a75;
}

body.auth-page {
    box-sizing: border-box;
    margin: 0;
    min-height: 100vh;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", "Yu Gothic", sans-serif;
    background: linear-gradient(135deg, var(--auth-bg-start), var(--auth-bg-end));
    color: var(--auth-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

body.auth-page * {
    box-sizing: border-box;
}

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

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 20px;
}

.auth-brand img {
    height: 23px;
    width: auto;
}

.auth-brand span {
    font-size: 15px;
    font-weight: bold;
    color: var(--auth-primary-dark);
    letter-spacing: 0.02em;
}

.auth-card {
    background: var(--auth-card-bg);
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(12, 102, 153, 0.14);
    padding: 32px 28px;
}

.auth-card h1 {
    margin: 0 0 18px;
    font-size: 19px;
    color: var(--auth-primary-dark);
    text-align: center;
}

.auth-subtitle {
    margin: -10px 0 16px;
    font-size: 13px;
    color: var(--auth-muted);
    text-align: center;
}

.auth-notice {
    background: var(--auth-notice-bg);
    border: 1px solid var(--auth-notice-border);
    color: var(--auth-notice-text);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.auth-card p.error {
    background: var(--auth-error-bg);
    border: 1px solid var(--auth-error-border);
    color: var(--auth-error-text);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    color: var(--auth-muted);
    margin-bottom: 6px;
}

.auth-field input[type="text"],
.auth-field input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: #fbfdfe;
    color: var(--auth-text);
}

.auth-field input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(12, 102, 153, 0.16);
}

.auth-field input[readonly],
.auth-field input[disabled] {
    background: #eef1f3;
    color: var(--auth-muted);
}

.auth-submit {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: bold;
    color: #ffffff;
    background: var(--auth-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.auth-submit:hover {
    background: var(--auth-primary-dark);
}

.auth-links {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
}

.auth-links p {
    margin: 6px 0;
    color: var(--auth-muted);
}

.auth-links a {
    color: var(--auth-primary);
    text-decoration: none;
}

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

.auth-done {
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
}

.auth-done a {
    color: var(--auth-primary);
}

@media (max-width: 420px) {
    .auth-card {
        padding: 24px 18px;
        border-radius: 10px;
    }
}
