/* 全体の設定 */
body {
    font-family: "Noto Sans JP", sans-serif;
    background: linear-gradient(135deg, #f5ebe0, #faf3e0);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* サイトタイトル */
.site-title {
    text-align: center;
    font-size: 1.8rem;
    color: #3a5a40;
    margin-bottom: 1rem;
}

/* ログインボックス */
.login-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card h2 {
    margin-bottom: 1.5rem;
    color: #3a5a40;
}

/* 新規登録用ボックス */
.register-card {
    background-color: #c4bfb5;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.register-card h2 {
    margin-bottom: 1.5rem;
    color: #5a4f3a;
}

/* フォーム要素 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.login-form label {
    font-weight: bold;
    color: #444;
}

.login-form input {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.login-form input:focus {
    border-color: #3a5a40;
    outline: none;
    box-shadow: 0 0 5px rgba(58, 90, 64, 0.3);
}

/* ボタン */
button {
    background-color: #3a5a40;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #2f4f36;
}

/* 新規登録用ボタン */
.register-button {
    background-color: #7a4522;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.register-button:hover {
    background-color: #e8670a;
}

/* 新規登録リンク */
.register-link {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #333;
}

.register-link a {
    color: #3a5a40;
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}

/* スマホ対応 */
@media (max-width: 480px) {
.login-card {
    padding: 1.5rem;
    width: 90%;
}

.site-title {
    font-size: 1.5rem;
}
}

/* エラー・成功メッセージ */
.error-message {
    display: block;
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
}
.success-message {
    display: block;
    color: #388e3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
}
/* ボタン無効時 */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
