/* ============================
   共通レイアウト（PC）
============================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

/* メインカード */
.auth-card {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* タイトル */
.auth-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 24px;
}

/* 入力欄（email / username / password 共通） */
input[type="email"],
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 22px;
    border-radius: 12px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* ボタン */
button {
    width: 100%;
    padding: 16px;
    background: #0078ff;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
}

button:hover {
    background: #005fcc;
}

/* エラー表示 */
.error {
    color: #ff4d4d;
    font-size: 16px;
    text-align: center;
    margin-bottom: 16px;
}

/* 下部リンク */
.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links a {
    display: block;
    color: #0078ff;
    font-size: 16px;
    margin: 8px 0;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ============================
   スマホ専用（UI）
============================ */
@media (max-width: 600px) {

    .auth-card {
        padding: 48px;
        border-radius: 24px;
    }

    .auth-title {
        font-size: 30px !important;
        margin-bottom: 32px;
    }

    input[type="email"],
    input[type="text"],
    input[type="password"] {
        padding: 18px !important;
        font-size: 16px !important;
        border-radius: 18px;
        margin-bottom: 32px;
    }

    button {
        padding: 18px !important;
        font-size: 16px !important;
        border-radius: 18px !important;
    }

    .auth-links a {
        font-size: 18px !important;
        margin: 14px 0;
    }

    .error {
        font-size: 18px !important;
    }
}
