/* 全体背景とフォント */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #121212; /* ダーク背景 */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* フォームコンテナ */
form {
    background: #1e1e1e;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* 見出し */
h2 {
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
    color: #f0f0f0;
}

/* ラベル */
label {
    display: block;
    text-align: left;
    font-size: 14px;
    margin-bottom: 8px;
    color: #ccc;
}

/* 入力欄 */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #2a2a2a;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #5e5eff;
    box-shadow: 0 0 8px rgba(94, 94, 255, 0.5);
}

/* ボタン */
button[type="submit"] {
    width: 100%;
    padding: 12px 0;
    background: #5e5eff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}

button[type="submit"]:hover {
    background: #7f7fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94, 94, 255, 0.5);
}

/* エラーメッセージ */
p {
    color: #ff6b6b;
    margin-bottom: 20px;
    font-weight: 500;
}

/* メディアクエリでスマホ対応 */
@media (max-width: 480px) {
    form {
        padding: 30px 20px;
    }

    h2 {
        font-size: 24px;
    }
}
