|
| 1 | +{% extends "base.html" %} |
| 2 | +{% load static %} |
| 3 | + |
| 4 | +{% block title %}Enter code — DAIV{% endblock %} |
| 5 | + |
| 6 | +{% block content %} |
| 7 | +<div class="relative flex min-h-dvh items-center justify-center overflow-hidden px-4"> |
| 8 | + <div class="pointer-events-none absolute inset-0" |
| 9 | + style="background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(255,255,255,0.025) 0%, transparent 100%)"></div> |
| 10 | + <div class="pointer-events-none absolute inset-0 opacity-30" |
| 11 | + style="background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0); background-size: 32px 32px"></div> |
| 12 | + |
| 13 | + <div class="relative w-full max-w-[380px]"> |
| 14 | + <!-- Logo --> |
| 15 | + <div class="animate-fade-up mb-10 flex flex-col items-center"> |
| 16 | + <img src="{% static 'accounts/img/logo.png' %}" alt="DAIV" class="h-10"> |
| 17 | + </div> |
| 18 | + |
| 19 | + <!-- Icon + message --> |
| 20 | + <div class="animate-fade-up mb-8 text-center" style="animation-delay: 80ms"> |
| 21 | + <div class="mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full border border-white/[0.08] bg-white/[0.03]"> |
| 22 | + <svg class="h-5 w-5 text-gray-400" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"> |
| 23 | + <path stroke-linecap="round" stroke-linejoin="round" d="M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75"/> |
| 24 | + </svg> |
| 25 | + </div> |
| 26 | + <h2 class="text-[16px] font-semibold text-white">Check your email</h2> |
| 27 | + <p class="mt-2 text-[14px] font-light text-gray-400"> |
| 28 | + We sent a login code to your inbox.<br>Enter it below to continue. |
| 29 | + </p> |
| 30 | + </div> |
| 31 | + |
| 32 | + <form method="post" class="animate-fade-up" style="animation-delay: 160ms"> |
| 33 | + {% csrf_token %} |
| 34 | + <div class="space-y-3"> |
| 35 | + {% for field in form %} |
| 36 | + <div> |
| 37 | + {% if field.errors %} |
| 38 | + <p class="mb-2 text-[14px] text-red-400">{{ field.errors.0 }}</p> |
| 39 | + {% endif %} |
| 40 | + <input type="text" |
| 41 | + name="{{ field.html_name }}" |
| 42 | + id="{{ field.id_for_label }}" |
| 43 | + value="{{ field.value|default:'' }}" |
| 44 | + {% if field.field.required %}required{% endif %} |
| 45 | + autocomplete="one-time-code" |
| 46 | + inputmode="numeric" |
| 47 | + placeholder="Enter code" |
| 48 | + class="block w-full rounded-xl border border-white/[0.06] bg-white/[0.03] px-4 py-3.5 text-center text-lg font-semibold tracking-[0.3em] text-white placeholder-gray-500 outline-none transition-all duration-200 focus:border-white/[0.15] focus:bg-white/[0.05] focus:ring-1 focus:ring-white/[0.08]"> |
| 49 | + </div> |
| 50 | + {% endfor %} |
| 51 | + <button type="submit" |
| 52 | + class="w-full rounded-xl bg-white px-4 py-3 text-[14px] font-semibold text-[#030712] transition-all duration-200 hover:bg-gray-200 active:scale-[0.98]"> |
| 53 | + Verify & sign in |
| 54 | + </button> |
| 55 | + </div> |
| 56 | + </form> |
| 57 | + |
| 58 | + <p class="animate-fade-up mt-6 text-center text-[14px] text-gray-500" style="animation-delay: 220ms"> |
| 59 | + <a href="{% url 'account_login' %}" class="text-gray-400 transition-colors hover:text-white">Back to sign in</a> |
| 60 | + </p> |
| 61 | + </div> |
| 62 | +</div> |
| 63 | +{% endblock %} |
0 commit comments