/* =============================================================
   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: 2em;
    margin-bottom: 30px;
}

/* --- フォームグループ (認証用オーバーライド) --- */
.auth-container .form-group input,
.auth-container .form-group select {
    text-align: left;
}

.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;
}