/* 全体のフォントと背景 */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* ログインカード */
.card {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 320px;
    text-align: center;
}

/* 見出し */
h1 {
    margin-bottom: 24px;
    font-size: 28px;
    font-weight: bold;
}
h2 {
    font-size: 18px;
    margin-bottom: 20px;
}

/* フォーム */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}
button {
    color: white;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* 各種ボタンカラー */
.btn-login {
    background-color: #007bff;
}
.btn-login:hover {
    background-color: #0069d9;
}
.btn-register {
    background-color: #ff8c42;
}
.btn-register:hover {
    background-color: #e6732d;
}
.btn-reset {
    background-color: #6c63ff;
}
.btn-reset:hover {
    background-color: #554bff;
}

/* リンク */
.links {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
}
.link {
    margin-top: 16px;
}
a {
    font-size: 13px;
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* フラッシュメッセージ用（画面上部中央固定） */
#flash-message {
    position: fixed;       /* 固定表示 */
    top: 20px;             /* 上から20px */
    left: 50%;             /* 横中央 */
    transform: translateX(-50%); /* 完全中央寄せ */
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;         /* 他の要素より前面 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.flash-container-absolute {
    position: absolute;
    bottom: 100%;       /* カードの真上に配置 */
    left: 0;
    width: 100%;
    margin-bottom: 15px; /* カードとの隙間 */
    z-index: 10;
}

.flash-item {
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}