.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}

.login-card {
    width: 350px;
}

.login-title {
    text-align: center;
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}

.remember-wrap {
    margin-top: 10px;
    text-align: left;
    /* ← 左寄せにする */
}

.remember-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    /* ← 1行固定（超重要） */
    cursor: pointer;
}

.remember-label input[type="checkbox"] {
    margin: 0;
    width: auto;
}

body {
    font-family: "Segoe UI", sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 20px;
}

/* カード */
.card {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* フォーム */
input:not([type="checkbox"]),
select,
textarea {
    padding: 8px;
    margin: 5px 5px 10px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* ボタン */
button {
    padding: 8px 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

/* メインボタン */
button[type="submit"] {
    background: #2ecc71;
    color: white;
}

button[type="submit"]:hover {
    background: #27ae60;
}

a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
}

/* ログイン入力 */
.login-card input:not([type="checkbox"]) {
    width: 100%;
    box-sizing: border-box;
}

/* ボタン強調 */
.login-card button {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    color: white;
    font-size: 16px;
}

/* スマホ用css */
@media (max-width: 768px) {

    body {
        padding: 10px;
    }

    .card {
        padding: 15px;
    }

    /* テーブル文字小さく */
    .table {
        font-size: 12px;
    }

    /* nowrap解除（重要） */
    .table td {
        white-space: normal;
    }

    /* 幅指定を無効化 */
    .table-user th,
    .table-user td {
        width: auto;
    }

    /* 入力フォーム */
    input,
    select,
    textarea {
        width: 100%;
        box-sizing: border-box;
    }

    /* ボタン */
    button {
        width: 100%;
        margin-top: 10px;
    }

    /* モーダル */
    .modal {
        width: 90%;
    }
}