Files
app_compartir/web/templates/login.html
T

82 lines
4.7 KiB
HTML

{{template "base.html" .}}
{{define "title"}}Iniciar Sesión — drop.sigmac.app{{end}}
{{define "content"}}
<div class="max-w-md mx-auto space-y-6 pt-4">
<div class="text-center space-y-2">
<div class="w-12 h-12 mx-auto rounded-2xl bg-gradient-to-tr from-brand-600 to-emerald-400 flex items-center justify-center text-slate-950 text-xl font-black shadow-lg shadow-brand-500/20">
<i class="fa-solid fa-lock"></i>
</div>
<h1 class="text-2xl font-bold text-white">Acceso a drop.sigmac.app</h1>
<p class="text-xs text-slate-400">
Inicia sesión para que tus archivos se guarden de forma <strong class="text-emerald-400 font-semibold">permanente</strong> y no caduquen en 24h.
</p>
</div>
{{if .Error}}
<div class="p-3 rounded-xl bg-rose-500/10 border border-rose-500/20 text-rose-400 text-xs flex items-center gap-2">
<i class="fa-solid fa-circle-exclamation"></i>
<span>{{.Error}}</span>
</div>
{{end}}
<div class="bg-slate-900 border border-slate-800 rounded-3xl p-6 sm:p-8 space-y-6 shadow-2xl">
<!-- Google OAuth Option -->
{{if .HasGoogle}}
<div>
<a href="/auth/google" class="w-full py-2.5 px-4 rounded-xl bg-slate-800 hover:bg-slate-700 border border-slate-700 text-white font-semibold text-sm transition flex items-center justify-center gap-3">
<svg class="w-4 h-4" viewBox="0 0 24 24">
<path fill="#4285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/>
<path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/>
<path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.06H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.94l2.85-2.22.81-.63z"/>
<path fill="#EA4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.06l3.66 2.84c.87-2.6 3.3-4.52 6.16-4.52z"/>
</svg>
<span>Continuar con Google</span>
</a>
</div>
<div class="relative flex items-center justify-center">
<div class="border-t border-slate-800 w-full"></div>
<span class="bg-slate-900 px-3 text-[11px] text-slate-500 uppercase tracking-wider font-semibold">o con WebControl</span>
</div>
{{end}}
<!-- WebControl Form -->
<form action="/login/webcontrol" method="POST" class="space-y-4">
<div class="space-y-1">
<label for="email" class="block text-xs font-semibold text-slate-300">Correo electrónico / Usuario</label>
<div class="relative">
<span class="absolute inset-y-0 left-0 pl-3.5 flex items-center text-slate-500 text-xs">
<i class="fa-solid fa-envelope"></i>
</span>
<input type="text" id="email" name="email" required placeholder="usuario@telcotronics.com" class="w-full bg-slate-950 border border-slate-800 rounded-xl pl-9 pr-4 py-2.5 text-sm text-slate-100 placeholder-slate-500 focus:outline-none focus:border-brand-500 transition">
</div>
</div>
<div class="space-y-1">
<label for="password" class="block text-xs font-semibold text-slate-300">Contraseña</label>
<div class="relative">
<span class="absolute inset-y-0 left-0 pl-3.5 flex items-center text-slate-500 text-xs">
<i class="fa-solid fa-key"></i>
</span>
<input type="password" id="password" name="password" required placeholder="••••••••" class="w-full bg-slate-950 border border-slate-800 rounded-xl pl-9 pr-4 py-2.5 text-sm text-slate-100 placeholder-slate-500 focus:outline-none focus:border-brand-500 transition">
</div>
</div>
<button type="submit" class="w-full py-2.5 px-4 rounded-xl bg-brand-600 hover:bg-brand-500 text-slate-950 font-bold text-sm transition flex items-center justify-center gap-2 shadow-lg shadow-brand-500/20">
<i class="fa-solid fa-building-shield"></i>
<span>Ingresar con WebControl</span>
</button>
</form>
<div class="border-t border-slate-800 pt-4 text-center">
<a href="/" class="text-xs text-slate-400 hover:text-white transition flex items-center justify-center gap-1.5">
<i class="fa-solid fa-arrow-left"></i>
<span>Continuar como Invitado (sin registro)</span>
</a>
</div>
</div>
</div>
{{end}}