/* リセットスタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* 背景 */
body {
    background: linear-gradient(to bottom right, #d4a5e5, #8fa9f5); /* ピンクと青の中間色のグラデーション */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: #333;
}

/* コンテナ */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* 見出し */
h1 {
    font-size: 28px;
    color: #a478d3; /* パープル系の濃い色 */
    margin-bottom: 10px;
}

p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* フォーム */
.form-container {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

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

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
    border-color: #a478d3; /* フォーカス時の色 */
    outline: none;
}

/* ドロップダウン */
select {
    appearance: none; /* ブラウザ固有のスタイルを削除 */
    background: #fff;
    color: #333;
    cursor: pointer;
}

/* ボタン */
.login-btn,
.register-btn {
    width: 100%;
    padding: 10px;
    background: #a478d3; /* ボタンの背景色 */
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.login-btn:hover,
.register-btn:hover {
    background: #8fa9f5; /* ホバー時の色 */
}

.password-note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* オプションリンク */
.options {
    margin-top: 15px;
}

.options a {
    display: block;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    margin-bottom: 5px;
}

.options a:hover {
    color: #a478d3; /* リンクのホバー色 */
}

/* フッター */
footer {
    margin-top: 20px;
    font-size: 12px;
    color: #999;
}

.error {
    color: red;
    font-size: 14px; /* 必要に応じてフォントサイズを変更 */
    margin: 10px 0; /* 上下の余白を設定 */
}

.success {
    color: red; /* テキストの色を赤に設定 */
    font-size: 14px; /* フォントサイズを設定 */
    margin: 10px 0; /* 上下の余白を設定 */
    text-align: center; /* 中央揃え */
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group input:focus, .form-group select:focus {
    border-color: #007bff;
    outline: none;
}

.note {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* 会員規約・プライバシーポリシーのリンク */
.policy-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 10px;
}

.policy-text a {
    color: #a478d3;
    text-decoration: none;
}

.policy-text a:hover {
    text-decoration: underline;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    h1 {
        font-size: 22px;
    }

    p {
        font-size: 14px;
    }

    .form-group label {
        font-size: 13px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    select {
        font-size: 13px;
    }

    .login-btn,
    .register-btn {
        font-size: 14px;
        padding: 8px;
    }

    footer {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }

    h1 {
        font-size: 22px;
    }

    p {
        font-size: 12px;
    }

    .form-group label {
        font-size: 12px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    select {
        font-size: 12px;
        padding: 8px;
    }

    .login-btn,
    .register-btn {
        font-size: 12px;
        padding: 6px;
    }

    footer {
        font-size: 9px;
    }
}