/* ログイン画面（login.php・login_verify.php）の見た目 */
    * { box-sizing: border-box; }
    html, body { height: 100%; }
    body {
        margin: 0;
        font-family: var(--font-ui);
        color: #1f2937;
        background: #fff;
        display: grid;
        grid-template-columns: minmax(320px, 5fr) 6fr;
        min-height: 100vh;
    }

    /* ---- 左：ブランド ---- */
    .login-brand {
        background: #1d4ed8;
        color: #fff;
        padding: 48px 56px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .login-brand .school {
        font-size: 14px;
        letter-spacing: 0.08em;
        opacity: 0.85;
    }
    .login-brand .brand { font-size: clamp(40px, 5vw, 64px); gap: 0.3em; }
    .login-brand .brand-mark { width: 1.05em; height: 1.05em; }
    .login-brand .foot {
        font-family: var(--font-brand);
        font-size: 12px;
        opacity: 0.6;
    }

    /* ---- 右：フォーム ---- */
    .login-main {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 48px 24px;
        background: #f4f6f9;
    }
    .login-form {
        width: 100%;
        max-width: 380px;
    }
    .login-form h1 {
        font-size: 22px;
        font-weight: 700;
        margin: 0 0 6px;
    }
    .login-form .lead {
        margin: 0 0 28px;
        font-size: 13px;
        color: #6b7280;
        line-height: 1.7;
    }
    label {
        display: block;
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 6px;
        color: #374151;
    }
    input {
        width: 100%;
        height: 46px;
        padding: 0 14px;
        border: 1px solid #cbd2dc;
        border-radius: 8px;
        background: #fff;
        font-family: inherit;
        font-size: 15px;
        margin-bottom: 18px;
    }
    input:focus {
        outline: none;
        border-color: #1d4ed8;
        box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18);
    }
    button {
        width: 100%;
        height: 48px;
        margin-top: 4px;
        border: none;
        border-radius: 8px;
        background: #1d4ed8;
        color: #fff;
        font-family: inherit;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 0.1em;
        cursor: pointer;
    }
    button:hover { background: #1741b8; }
    button:focus-visible { outline: 3px solid #93b4ff; outline-offset: 2px; }
    .error {
        background: #fee2e2;
        color: #991b1b;
        padding: 12px 14px;
        border-radius: 8px;
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    .help {
        margin-top: 24px;
        font-size: 12px;
        color: #6b7280;
        line-height: 1.7;
    }

    /* ---- スマートフォン：ブランドを上部の帯にする ---- */
    @media (max-width: 760px) {
        body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
        .login-brand { padding: 28px 24px 24px; gap: 16px; }
        .login-brand .brand { font-size: 34px; }
        .login-brand .foot { display: none; }
        .login-main { align-items: flex-start; padding: 32px 20px; }
    }

    /* ---- 2段階認証の画面（login_verify.php） ---- */
    .notice { background: #ecfdf5; color: #065f46; padding: 12px 14px; border-radius: 8px; font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
    .code-input { font-size: 24px; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }
    .check { display: flex; gap: 8px; align-items: flex-start; font-weight: normal; font-size: 13px; color: #374151; margin: 0 0 18px; line-height: 1.6; }
    .check input { width: auto; height: auto; margin: 4px 0 0; }
    .linkbtn { background: none; border: none; color: #1d4ed8; padding: 0; width: auto; height: auto; margin: 0; font-size: 13px; font-weight: normal;
               letter-spacing: 0; text-decoration: underline; cursor: pointer; }
    .linkbtn:hover { background: none; color: #1741b8; }
    .methods { margin-top: 22px; padding-top: 16px; border-top: 1px solid #e5e7eb; font-size: 13px; line-height: 2; }
    .methods a { color: #1d4ed8; }
    .who { font-size: 13px; color: #374151; margin: -16px 0 22px; }
