 * { box-sizing: border-box; }

    body {
        margin: 0;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
            "Hiragino Sans", "Meiryo", sans-serif;
        color: #1f2933;
        background-image: none;
        background-color: #F4F9FB;
    }

    .page {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .container {
        max-width: 420px;
        margin: 0 auto;
        padding: 24px 16px 16px;
        width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* ヘッダー */
    .header {
        text-align: center;
        margin-bottom: 16px;
    }
    .header img {
        max-width: 220px;
        height: auto;
        display: block;
        margin: 0 auto 6px;
    }
    .header-title {
        margin: 0 0 4px;
        font-size: 1.6rem;
        font-weight: 700;
        letter-spacing: .08em;
        color: #111827;
    }
    .header-sub {
        font-size: .9rem;
        color: #6b7280;
    }

    /* ログインカード */
    .card {
        background: #fff;
        border-radius: 16px;
        padding: 20px 18px 18px;
        box-shadow: 0 8px 24px rgba(15,23,42,.18);
        border: 1px solid #e5e7eb;
    }

    .card-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
    }
    .card-header-icon {
        width: 8px;
        height: 24px;
        border-radius: 999px;
        background: #f97316;
    }
    .card-title {
        font-size: 1.05rem;
        font-weight: 600;
    }

    .field {
        margin-bottom: 12px;
    }
    .field-label {
        font-size: .85rem;
        color: #4b5563;
        margin-bottom: 4px;
    }
    .field-label span {
        background: #fee2e2;
        border-radius: 999px;
        padding: 2px 8px;
        font-size: .78rem;
        color: #991b1b;
        margin-left: 6px;
    }
    .field-input {
        width: 100%;
        padding: 9px 10px;
        border-radius: 8px;
        border: 1px solid #cbd5e1;
        font-size: .95rem;
        font-family: inherit;
    }
    .field-input:focus {
        outline: none;
        border-color: #22c55e;
        box-shadow: 0 0 0 1px rgba(34,197,94,.25);
    }

    /* エラー表示（Laravelで $errors を出す想定） */
    .error-message {
        margin-bottom: 10px;
        padding: 8px 10px;
        border-radius: 8px;
        font-size: .8rem;
        color: #b91c1c;
        background: #fee2e2;
        border: 1px solid #fecaca;
    }

    /* チェックボックス + リンク */
    .form-options {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin: 4px 0 14px;
        font-size: .8rem;
    }
    .remember {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .form-options a {
        color: #2563eb;
        text-decoration: none;
    }
    .form-options a:hover {
        text-decoration: underline;
    }

    /* ボタン */
    .btn {
        appearance: none;
        border: none;
        border-radius: 999px;
        padding: 10px 18px;
        width: 100%;
        font-size: .95rem;
        font-weight: 600;
        cursor: pointer;
        transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
        white-space: nowrap;
    }
    .btn-primary {
        background: linear-gradient(135deg,#22c55e,#16a34a);
        color: #fff;
        box-shadow: 0 6px 18px rgba(34,197,94,.45);
    }
    .btn-primary:hover {
        filter: brightness(1.03);
    }
    .btn:active {
        transform: translateY(1px);
        box-shadow: 0 3px 10px rgba(15,23,42,.25);
    }

    /* 戻るリンク */
    .back-area {
        margin-top: 14px;
        text-align: center;
        font-size: .8rem;
    }
    .back-link {
        color: #374151;
        text-decoration: none;
        padding: 6px 14px;
        border-radius: 999px;
        border: 1px solid #d1d5db;
        background: #fff;
        box-shadow: 0 3px 8px rgba(0,0,0,.06);
        display: inline-block;
    }
    .back-link:hover {
        background: #f9fafb;
    }

    /* フッター */
    .footer {
        padding: 12px 16px 18px;
        text-align: center;
        font-size: .75rem;
        color: #6b7280;
    }

    @media (max-width: 480px) {
        .header-title { font-size: 1.4rem; }
        .card { padding: 18px 14px 16px; }
    }