/* =============================================
   auth.css — ログイン・登録フォーム 共通スタイル
   ============================================= */

/* フォームカードのラッパー */
.auth-form {
    max-width: 420px;
    margin: 2.5rem auto;
    padding: 2rem 2rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

/* フォームのタイトル見出し */
.auth-form h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-align: center;
    color: #1e293b;
}

/* 各入力グループ */
.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1.1rem;
}

/* ラベル */
.auth-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

/* テキスト・メール・パスワード入力欄 */
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #f8fafc;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: #fff;
}

/* エラーメッセージ */
.auth-form .text-red-600,
.auth-form [class*="error"] {
    font-size: 0.82rem;
    color: #ef4444;
    margin-top: 0.15rem;
}

/* チェックボックス行 */
.auth-form .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: #475569;
    margin-bottom: 1.1rem;
}

/* ボタン行 */
.auth-form .form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

/* 送信ボタン */
.auth-form .btn-submit {
    width: 100%;
    padding: 0.65rem;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.auth-form .btn-submit:hover {
    background: #4338ca;
}

.auth-form .btn-submit:active {
    transform: scale(0.98);
}

/* リンク（パスワード忘れ・登録済みなど） */
.auth-form .form-links {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

.auth-form .form-links a {
    color: #4f46e5;
    text-decoration: none;
}

.auth-form .form-links a:hover {
    text-decoration: underline;
}

/* スマホ対応 */
@media (max-width: 480px) {
    .auth-form {
        margin: 1rem;
        padding: 1.5rem 1rem;
    }
}