// Path: src/components/admin/auth/AdminAuthCard.tsx
// The card used by the public admin auth pages (forgot / reset password),
// same look as /admin/login.
export default function AdminAuthCard({
  title,
  subtitle,
  children,
}: {
  title: string;
  subtitle: string;
  children: React.ReactNode;
}) {
  return (
    <div className="w-full px-4">
      <div
        className="rounded-3xl p-8 md:p-10"
        style={{
          background: "var(--color-surface)",
          boxShadow: "var(--shadow-card-xl)",
          border: "1px solid var(--color-border)",
        }}
      >
        <div className="mb-8 text-center">
          <div
            className="inline-flex items-center justify-center w-14 h-14 rounded-2xl mb-4"
            style={{ background: "var(--color-cta)", boxShadow: "0 8px 24px rgba(217,119,6,0.35)" }}
          >
            <svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="white" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
              <rect x="3" y="11" width="18" height="11" rx="2" />
              <path d="M7 11V7a5 5 0 0 1 10 0v4" />
            </svg>
          </div>
          <h1 className="text-2xl font-bold tracking-tight" style={{ color: "var(--color-text)", fontFamily: "var(--font-sans)" }}>
            {title}
          </h1>
          <p className="mt-1 text-sm" style={{ color: "var(--color-text-tertiary)" }}>
            {subtitle}
          </p>
        </div>
        {children}
      </div>
    </div>
  );
}
