/* =============================================================
   components/auth/auth.css
   認証系ページ（login, register）共通CSS
   ============================================================= */

/* --- ページ背景・中央寄せ --- */
html.auth-page-html,
body.auth-page-body {
    overflow: auto !important;
    position: static !important;
    height: auto !important;
    -webkit-overflow-scrolling: touch;
}

.auth-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    margin: 0;
    padding: 20px 0;
    box-sizing: border-box;
}

/* --- カードコンテナ --- */
.auth-container {
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;
}

/* --- ロゴ --- */
.auth-logo {
    height: 40px;
    margin-bottom: 20px;
}

/* --- タイトル --- */
.auth-container h1 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: #2c3e50;
}

/* --- Wizard Styles --- */
.wizard-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.wizard-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #dfe6e9;
    transition: all 0.3s ease;
}

.wizard-dot.active {
    background-color: #8e44ad;
    transform: scale(1.3);
}

.wizard-dot.completed {
    background-color: #2ecc71;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-navigation {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-back {
    background: #bdc3c7 !important;
    box-shadow: none !important;
}

/* --- フォームグループ (認証用オーバーライド) --- */
.auth-container .form-group input,
.auth-container .form-group select {
    text-align: left;
    height: 54px !important; /* 高さを固定してガクつきを防止 */
    line-height: 24px !important;
    padding: 15px !important;
    box-sizing: border-box !important;
}

/* プレースホルダーは常にFavpフォントを使用 */
.auth-container input::placeholder {
    font-family: 'CustomFont', sans-serif !important;
    opacity: 0.6;
}

/* パスワード伏せ字（●）が独自フォントにないための対策 */
.auth-container input.password-field[type="password"] {
    font-family: sans-serif !important; /* 伏せ字が見えるシステムフォント */
    letter-spacing: 2px;
}

/* パスワード表示時はFavpフォントを使用 */
.auth-container input.password-field[type="text"] {
    font-family: 'CustomFont', sans-serif !important;
    letter-spacing: normal;
}

.auth-container .form-group label {
    text-align: left;
}

/* --- 警告テキスト --- */
.auth-warning {
    color: #e74c3c;
    font-size: 0.85em;
    margin-top: 5px;
    text-align: left;
    display: block;
}

/* --- 補足リンク (ユーザー名とはなど) --- */
.auth-info-link {
    text-align: right;
    display: block;
    font-size: 0.9em;
    margin-top: 5px;
    color: #555;
    text-decoration: none;
}

/* --- 招待バナー --- */
.auth-invite-banner {
    background-color: #e8f0fe;
    color: #1a73e8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    border: 1px solid #d2e3fc;
}

/* --- 利用規約テキスト --- */
.auth-terms {
    font-size: 0.85em;
    margin-bottom: 15px;
    color: #666;
}

.auth-terms a {
    color: #8e44ad;
    text-decoration: underline;
}

/* --- ランダム名前生成フィールド --- */
.username-gen-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.username-gen-wrapper input[type="text"] {
    flex: 1;
    background-color: #f0f0f0;
    cursor: not-allowed;
}

.btn-gen-username {
    width: auto !important;
    padding: 10px 15px;
    background: #6c5ce7;
    font-size: 0.9em;
    white-space: nowrap;
    flex-shrink: 0;
}