/* ============================================================
   ProjectTrack ログイン画面 専用スタイル
   Bootstrap を基軸とし、最小限の補完のみ記述する。
   対応ブレークポイント:
     スマホ   : xs/sm (〜767px)
     スクエア : xl    (1200px〜1399px)
     ワイド   : xxl   (1400px〜)
   ============================================================ */

/* ---------- 全体リセット ---------- */
html.login-page,
html.login-page body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

/* ---------- 背景画像レイヤー ---------- */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-color: #1a1a2e;
    /* 画像読み込み前のフォールバック色 */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* 画像の上に薄い暗幕をかけてフォームを読みやすくする */
    /* after 疑似要素で実装するため直接 filter はかけない */
}

.login-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* ---------- フォームラッパー：画面中央固定 ---------- */
.login-form-wrapper {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ---------- フォームカード ---------- */
.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    padding: 2.5rem 2rem;
}

/* ---------- フォームラベル・入力欄 ---------- */
.login-card .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.35rem;
}

.login-card .form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    padding: 0.6rem 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-card .form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    outline: none;
}

/* ---------- ログインボタン ---------- */
.login-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.65rem 1rem;
    width: 100%;
    letter-spacing: 0.03em;
    transition: opacity 0.2s ease, transform 0.1s ease;
    cursor: pointer;
    min-height: 44px;
}

.login-btn:hover {
    opacity: 0.9;
}

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

/* ---------- Remember me / パスワード忘れ ---------- */
.login-footer-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6b7280;
}

.login-footer-links a {
    color: #4f46e5;
    text-decoration: none;
}

.login-footer-links a:hover {
    text-decoration: underline;
}

/* ---------- レスポンシブ調整 ---------- */

/* スマホ（〜767px）: カードを全幅気味に */
@media (max-width: 767px) {
    .login-card {
        max-width: 100%;
        padding: 2rem 1.25rem;
        border-radius: 12px;
    }

    html.login-page,
    html.login-page body {
        overflow: auto;
    }
}

/* ワイド（1400px〜）: カードを少し広げる */
@media (min-width: 1400px) {
    .login-card {
        max-width: 460px;
    }
}

/* ---------- 社訓（画面下部中央） ---------- */
.login-motto {
    position: fixed;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    z-index: 20;
    text-align: center;
    font-family: 'Zen Antique', serif;
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.18em;
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.7),
        0 1px 3px rgba(0, 0, 0, 0.9);
    pointer-events: none;
    padding: 0 1rem;
    line-height: 1.8;
}

/* スマホ（〜767px）: フォームと重ならないよう小さめに */
@media (max-width: 767px) {
    .login-motto {
        font-size: 1rem;
        bottom: 1.25rem;
        letter-spacing: 0.1em;
    }
}