import{G as x,r as f,j as e,S as g,x as j}from"./app-C7YxHmQz.js";import{G as h}from"./GuestLayout-B7lmR7rt.js";import{T as i,I as n}from"./TextInput-_ltyoRzY.js";import{I as d}from"./InputLabel-DiHYUlAy.js";import{P as v}from"./PrimaryButton-5tfLJAoI.js";import{D as w,a as N,b,c as y,d as D,e as E}from"./dialog-I_l9fXBT.js";import"./ApplicationLogo-DMUWyoGi.js";import"./index-w2AxdR7H.js";import"./index-CCZex4bU.js";import"./index-Cp62Blk_.js";import"./utils-DjqsqOe8.js";import"./x-Dr1RcXTX.js";import"./createLucideIcon-CBwNTxoJ.js";function O({status:a,canResetPassword:l}){const{data:t,setData:r,post:m,processing:c,errors:o,reset:p}=x({dni:"",password:"",remember:!1});f.useEffect(()=>()=>{p("password")},[]);const u=s=>{s.preventDefault(),m(route("login.estudiante.store"))};return e.jsxs(h,{children:[e.jsx(g,{title:"Iniciar sesión"}),e.jsx("p",{className:"text-center text-lg font-semibold",children:'I.E. "RAÚL PORRAS BARRENECHEA" - PAZOS'}),e.jsx("div",{className:"flex justify-center",children:e.jsxs(w,{children:[e.jsx(N,{children:"Mensaje de Bienvenida"}),e.jsx(b,{children:e.jsxs(y,{children:[e.jsx(D,{className:"text-center text-xl font-semibold",children:"Un cordial saludo de parte del Lic. LIZARDO CH.S"}),e.jsx(E,{children:e.jsx("p",{className:"text-center text-base",children:"Bienvenidos al portal donde podrán consultar las calificaciones, asistencia y comportamiento de cada estudiante del curso de Matemática. Este espacio está diseñado para mantenerles informados sobre el progreso académico y personal de los estudiantes."})})]})})]})}),a&&e.jsx("div",{className:"mb-4 font-medium text-sm text-green-600",children:a}),e.jsxs("form",{onSubmit:u,children:[e.jsxs("div",{children:[e.jsx(d,{htmlFor:"dni",value:"DNI"}),e.jsx(i,{id:"dni",type:"text",name:"dni",value:t.dni,className:"mt-1 block w-full",autoComplete:"username",isFocused:!0,onChange:s=>r("dni",s.target.value)}),e.jsx(n,{message:o.dni,className:"mt-2"})]}),e.jsxs("div",{className:"mt-4",children:[e.jsx(d,{htmlFor:"password",value:"Password"}),e.jsx(i,{id:"password",type:"password",name:"password",value:t.password,className:"mt-1 block w-full",autoComplete:"current-password",onChange:s=>r("password",s.target.value)}),e.jsx(n,{message:o.password,className:"mt-2"})]}),e.jsxs("div",{className:"flex items-center justify-end mt-4",children:[l&&e.jsx(j,{href:route("password.request"),className:"underline text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:focus:ring-offset-gray-800",children:"Forgot your password?"}),e.jsx(v,{className:"ms-4",disabled:c,children:"Iniciar sesión"})]})]})]})}export{O as default};
