/* static/css/login_style.css */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 奥のぼやけた背景のスタイル */
.bg-image-blurry {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover; /* 画面全体を覆う */
    background-position: center;
    filter: blur(20px) brightness(0.9); /* ぼかし効果 */
    z-index: -3; /* 重ね順を一番奥に設定 */
}

/* 手前のくっきりした背景のスタイル */
.bg-image-sharp {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: contain; /* 画像全体を表示 */
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2; /* ぼかし背景の１つ手前に設定 */
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* 変更: 暗いオーバーレイから、明るさを与える非常に薄い白のオーバーレイに変更 */
    background-color: rgba(255, 255, 255, 0.2);
    z-index: -1;
}

.login-container {
    /* 変更: 背景の透明度を少し上げて、中の文字を読みやすくします */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* 変更: 枠線を白から、うっすら見えるグレーに変更 */
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2); /* 影を少し調整 */
    /* 変更: 文字色を白から濃いグレーに変更 */
    color: #333;
    text-align: center;
}

.login-header h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

.error-message {
    /* 変更: エラーメッセージの配色をライトテーマ用に変更 */
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.error-message p {
    margin: 0;
}


.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: #495057; /* 変更: ラベルの文字色を少し濃く */
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    /* 変更: 入力欄の背景を白にし、枠線を設定 */
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    /* 変更: 入力文字の色を濃い色に */
    color: #495057;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input::placeholder {
    /* 変更: プレースホルダーの文字色を変更 */
    color: #adb5bd;
}

.input-group input:focus {
    outline: none;
    /* 変更: フォーカス時の色をボタンの青に合わせる */
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 40px; /* アイコンのスペースを確保 */
}

.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    /* 変更: アイコンの色を濃いグレーに */
    color: #6c757d;
    transition: color 0.2s;
}

.toggle-password:hover {
    /* 変更: ホバー時の色をさらに濃く */
    color: #333;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    /* 変更: 文字色を変更 */
    color: #495057;
}

.remember-me input {
    margin-right: 5px;
}

.forgot-password {
    /* 変更: リンク色をボタンの青に合わせる */
    color: #3498db;
    text-decoration: none;
}
.forgot-password:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;
    padding: 15px;
    background: #3498db;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.login-button:hover {
    background: #2980b9;
}

.login-button:active {
    transform: scale(0.98);
}

.login-footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    /* 変更: フッターの文字色をグレー系に */
    color: #6c757d;
}

.pc-recommendation {
    margin-bottom: 0.5rem;
}

.pc-recommendation .fa-desktop {
    margin-right: 5px;
}

.copyright {
    margin: 0;
}