/* ===================================================================
   auth.css — 認証カード画面（login / signup）の共有レイアウト
   login.html と signup.html に同一内容で存在していたルールを、
   宣言順そのままに移設したもの（差分はコメント・改行のみだった）。

   切り出しは両ページのCSSが分岐する直前（input:focus）までに留めている。
   これより後ろのルールはページごとに順序が異なるため、各ページの
   インライン <style> に残してある（カスケード順を1バイトも変えないため）。
   =================================================================== */

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ナビ */
nav {
    background: white;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}
nav .logo {
    font-size: 18px;
    font-weight: 800;
    color: #6366f1;
    text-decoration: none;
}
nav .logo span { color: #1e293b; }

/* メイン */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 48px 44px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.card-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

h1 {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}

.subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 32px;
}

.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    display: block;
    margin-bottom: 6px;
}

input {
    width: 100%;
    padding: 11px 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    color: #1e293b;
    font-size: 15px;
    margin-bottom: 18px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
input:focus { border-color: #6366f1; background: white; }
