import{t as e}from"./jsx-runtime-BbTa8W_M-1776590214964.js";import{r as t}from"./app-CXDQ5oEH-1776590214964.js";import{t as n}from"./useTranslation-D1etqd9u-1776590214964.js";import{n as r,t as i}from"./sun-tkdA80yb-1776590214964.js";import{n as a,t as o}from"./ThemeProvider-BEVm-uvz-1776590214964.js";import{t as s}from"./button-WiAFyHfP-1776590214964.js";import{t as c}from"./Logo-C07KrU6Z-1776590214964.js";var l=e();function u(){let{theme:e,setTheme:t}=a(),{t:o}=n();return(0,l.jsxs)(s,{variant:`ghost`,size:`icon`,onClick:()=>t(e===`light`?`dark`:`light`),className:`absolute top-4 right-4 rounded-full z-50`,children:[(0,l.jsx)(i,{className:`h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0`}),(0,l.jsx)(r,{className:`absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100`}),(0,l.jsx)(`span`,{className:`sr-only`,children:o(`Toggle theme`)})]})}function d({children:e}){return(0,l.jsx)(o,{defaultTheme:`system`,storageKey:`app-ui-theme`,children:(0,l.jsxs)(`div`,{className:`min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-background text-foreground transition-colors duration-300`,children:[(0,l.jsx)(u,{}),(0,l.jsx)(t,{href:`/`,className:`w-full mb-6 mt-10 sm:mt-0 flex items-center justify-center hover:opacity-80 transition-opacity outline-none`,children:(0,l.jsx)(c,{className:`w-[140px] h-[70px] sm:w-[180px] sm:h-[90px] justify-center mx-auto text-center`,alignment:`object-center`})}),(0,l.jsx)(`div`,{className:`w-full sm:max-w-md px-6 py-4`,children:e})]})})}export{d as t};