/* 全体のレイアウト */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* 最小高さをビューポート全体に設定 */
    overflow: auto; /* コンテンツが溢れた場合にスクロール可能に */
}

/* フォームのスタイル */
#register-form {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 350px;
    text-align: center;
    box-sizing: border-box; /* パディングを含む幅と高さにする */
    margin-top: 20px; /* 上下余白を調整 */
    margin-bottom: 20px;
}

/* 見出し（h2）のスタイル */
h2 {
    color: #333;
    font-size: 18px;
    margin: 0 0 20px;
    padding-top: 10px; /* 必要に応じてスペースを追加 */
    line-height: 1.5;
}

/* ラベルとインプットのデザイン */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

input[type="text"], input[type="password"], select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

input[type="text"]:focus, input[type="password"]:focus, select:focus {
    border-color: #007bff;
    background-color: #fff;
}

select {
    appearance: none;
    cursor: pointer;
}

small {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    display: block;
}

/* ボタンのスタイル */
.button-group {
    margin-top: 20px;
}

.register-button {
    background-color: #28d89e;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 0;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.register-button:hover {
    background-color: #1cb685;
}

/* リンクのスタイル */
.link-group {
    margin-top: 20px;
    font-size: 14px;
}

.link-group a {
    color: #007bff;
    text-decoration: none;
}

.link-group a:hover {
    text-decoration: underline;
}

/* エラーメッセージと成功メッセージ */
.error-message {
    color: red;
    font-size: 12px;
    margin-top: 10px;
}

.success-message {
    color: green;
    font-size: 12px;
    margin-top: 10px;
}
/* ボタンのスタイル */
.button-group {
    margin-top: 20px;
    display: flex; /* ボタンを横並びに */
    gap: 10px; /* ボタンの間にスペースを追加 */
    flex-wrap: wrap; /* ボタンが幅を超えた場合は折り返す */
}

.register-button,
.login-button {
    background-color: #28d89e;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 0;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%; /* デフォルトで全幅 */
    text-align: center; /* 中央揃え */
    text-decoration: none; /* リンクの下線を消す */
    display: inline-block; /* ボタンとして表示 */
}

.register-button:hover,
.login-button:hover {
    background-color: #1cb685;
}

@media (min-width: 480px) { /* デスクトップ向けにボタンを横並び */
    .register-button,
    .login-button {
        width: 48%; /* ボタンを横並びにしたとき、適切な幅を確保 */
    }
}
