/* 全体のリセットとベース */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    margin: 0;
}

/* コンテナ（中央寄せの枠） */
.container {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
}

h1, h2 {
    color: #2c3e50;
    text-align: center;
    margin-top: 0;
}

/* フォームのデザイン */
form div {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* 幅を100%に収める */
}

button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

/* リストのデザイン */
ul {
    list-style: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
}

li a {
    display: block;
    padding: 15px;
    background: #f8f9fa;
    color: #007bff;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
}

li a:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

/* ログアウトボタン */
.logout-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
}

.logout-link:hover {
    text-decoration: underline;
}

.error {
    color: #d9534f;
    background: #fdf7f7;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}