/**
 * 会員ログイン・登録（静的 earth-healthy_statc_html/11 の <style> を .eh-account-auth でスコープ）。
 * カート等の .input-field と競合させないため、原則このラッパー配下にのみ適用する。
 */

.eh-account-auth {
    /* モック 11 の body 背景に寄せる（tokens の body よりやや温かいオフホワイト） */
    --eh-auth-bg: #faf9f6;
    background-color: var(--eh-auth-bg);
}

.eh-account-auth .auth-card {
    max-width: 440px;
    width: 100%;
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

@media (min-width: 1024px) {
    .eh-account-auth .auth-card {
        padding: 3rem 2.5rem;
    }
}

.eh-account-auth .input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.9375rem;
}

.eh-account-auth .input-field:focus {
    outline: none;
    border-color: var(--earth-green, #4a7c59);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.eh-account-auth .label-text {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main, #333);
}

.eh-account-auth .btn-primary {
    display: block;
    width: 100%;
    background-color: var(--earth-green, #4a7c59);
    color: #fff;
    font-weight: 700;
    padding: 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.eh-account-auth .btn-primary:hover {
    background-color: #3d664a;
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.2);
}

.eh-account-auth .btn-primary:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

.eh-account-auth .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 1px solid #e2e8f0;
    color: var(--text-main, #333);
    font-weight: 700;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.eh-account-auth .btn-outline:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.eh-account-auth .error-box {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
    color: #b91c1c;
}

.eh-account-auth .password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem;
    line-height: 1;
}

.eh-account-auth .password-toggle:hover {
    color: #64748b;
}
