Spaces:
Sleeping

xertify / app /templates /register.html
Fedgo29
Adding changes by FedgoX
d40e08c
Raw History Blame Contribute Delete
2.9 kB
<!doctype html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Registro</title>
<style>
body {
margin: 0;
font-family: "Segoe UI", sans-serif;
background: linear-gradient(135deg, #0d1117, #1f2937);
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
color: #e5e7eb;
}
form {
background: #111827;
padding: 2rem;
border-radius: 12px;
width: 320px;
box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
animation: fadeIn 0.6s ease;
}
h2 {
margin-top: 0;
text-align: center;
color: #f3f4f6;
letter-spacing: 1px;
}
input {
width: 100%;
padding: 12px;
margin: 10px 0;
border-radius: 8px;
border: 1px solid #374151;
background: #1f2937;
color: #e5e7eb;
font-size: 14px;
outline: none;
transition: border 0.2s;
box-sizing: border-box;
/* 🔥 asegura que todos tengan exactamente el mismo tamaño */
}
input:focus {
border-color: #3b82f6;
}
button {
width: 100%;
padding: 12px;
background: #10b981;
/* verde agradable para diferenciar */
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 15px;
font-weight: 600;
transition: 0.2s;
}
button:hover {
background: #059669;
transform: translateY(-2px);
}
p {
font-size: 13px;
text-align: center;
margin-top: 12px;
}
a {
color: #60a5fa;
text-decoration: none;
font-weight: 600;
}
a:hover {
text-decoration: underline;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Responsive tweaks */
@media (max-width: 640px) {
body {
padding: 18px;
align-items: flex-start;
height: auto;
}
form {
width: 100% !important;
max-width: 420px;
margin: 40px auto;
padding: 1.25rem;
box-sizing: border-box;
}
h2 {
font-size: 20px;
}
input,
button {
font-size: 15px;
}
}
</style>
</head>
<body>
<form method="post" action="/auth/register">
<h2>Registro</h2>
<input name="name" placeholder="Nombre completo" required>
<input name="email" placeholder="Email" required>
<input name="password" type="password" placeholder="Password" required>
<input name="entity_id" type="number" placeholder="Entidad ID" required>
<button type="submit">Registrarme</button>
<p>¿Ya tienes cuenta? <a href="/">Inicia sesión</a></p>
</form>
</body>
</html>