117 lines
4.3 KiB
HTML
117 lines
4.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<meta name="viewport" content="width=device-width,initial-scale=1"/>
|
|
<title>{% block title %}Auth{% endblock %}</title>
|
|
<style>
|
|
/* GLOBAL */
|
|
:root{
|
|
--blue1:#1e3cfa;
|
|
--blue2:#3c63ff;
|
|
--muted:#f4f6ff;
|
|
--card-bg:#fff;
|
|
--accent: #3c63ff;
|
|
}
|
|
*{box-sizing:border-box}
|
|
body{margin:0;font-family:Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;background:var(--muted);color:#111}
|
|
.auth-wrapper{display:flex;min-height:100vh}
|
|
|
|
/* LEFT PANEL — video */
|
|
.auth-left{
|
|
position:relative;
|
|
width:40%;
|
|
min-width:320px;
|
|
overflow:hidden;
|
|
color:#fff;
|
|
display:flex;flex-direction:column;justify-content:flex-end;
|
|
}
|
|
.auth-left video{
|
|
position:absolute;inset:0;
|
|
width:100%;height:100%;
|
|
object-fit:cover;
|
|
z-index:0;
|
|
}
|
|
/* dark gradient overlay for text legibility */
|
|
.auth-left::after{
|
|
content:'';
|
|
position:absolute;inset:0;
|
|
background:linear-gradient(180deg,rgba(10,20,60,0.35) 0%,rgba(10,20,60,0.72) 100%);
|
|
z-index:1;
|
|
}
|
|
.auth-left-content{
|
|
position:relative;z-index:2;
|
|
padding:48px;
|
|
display:flex;flex-direction:column;gap:10px;
|
|
}
|
|
.brand{font-weight:700;font-size:28px;letter-spacing:-0.5px}
|
|
.auth-left h1{font-size:36px;margin:0}
|
|
.auth-left p{opacity:.92;margin:0;font-size:16px}
|
|
|
|
.auth-right{flex:1;display:flex;align-items:center;justify-content:center;padding:30px}
|
|
.auth-card{width:100%;max-width:480px;background:var(--card-bg);border-radius:16px;padding:36px;box-shadow:0 10px 30px rgba(16,24,40,0.08)}
|
|
|
|
h2{margin:0 0 6px 0;font-size:24px}
|
|
.subtitle{color:#666;font-size:14px;margin-bottom:18px}
|
|
|
|
.input-group{margin-bottom:14px}
|
|
.input-group label{display:block;font-size:13px;margin-bottom:8px;color:#333}
|
|
.input-group input{width:100%;padding:12px;border-radius:10px;border:1.5px solid #e6eefc;background:#f7f9ff;outline:none;transition:.15s}
|
|
.input-group input:focus{border-color:var(--accent);background:#fff;box-shadow:0 0 0 4px rgba(60,99,255,0.06)}
|
|
|
|
.btn-primary{display:inline-block;width:100%;padding:12px;border-radius:10px;border:none;background:var(--accent);color:#fff;font-weight:600;cursor:pointer}
|
|
.btn-primary:hover{filter:brightness(.95)}
|
|
|
|
.form-links, .redirect{text-align:right;margin-top:10px;font-size:13px}
|
|
a.link{color:var(--accent);text-decoration:none}
|
|
.redirect{text-align:center;font-size:14px;margin-top:18px}
|
|
|
|
/* messages */
|
|
.messages{margin-bottom:12px}
|
|
.message{padding:10px;border-radius:8px;margin-bottom:8px;font-size:14px}
|
|
.message.info{background:#eef5ff;color:#024}
|
|
.message.success{background:#ecfdf5;color:#064}
|
|
.message.warning{background:#fff7e6;color:#7a4b00}
|
|
.errorlist{color:#b00020;margin:6px 0 0 0;font-size:13px}
|
|
|
|
/* responsive — mobile: hide video, show compact gradient header */
|
|
@media (max-width:900px){
|
|
.auth-wrapper{flex-direction:column}
|
|
.auth-left{width:100%;min-height:180px;justify-content:flex-end;}
|
|
.auth-left video{display:block;}
|
|
.auth-left-content{padding:28px;text-align:center}
|
|
.auth-right{padding:20px}
|
|
.auth-card{border-radius:14px;padding:28px}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="auth-wrapper">
|
|
<div class="auth-left">
|
|
<video autoplay muted loop playsinline preload="auto" poster="https://images.pexels.com/videos/36761729/kerala-kerala-tourism-36761729.jpeg?auto=compress&cs=tinysrgb&w=750">
|
|
<source src="https://videos.pexels.com/video-files/36761729/15579487_1920_1080_30fps.mp4" type="video/mp4">
|
|
<source src="https://videos.pexels.com/video-files/36761729/15579486_1280_720_30fps.mp4" type="video/mp4">
|
|
</video>
|
|
<div class="auth-left-content">
|
|
<div class="brand">Eventify</div>
|
|
<p>{% block left_subtext %}Your events at your fingertips.{% endblock %}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="auth-right">
|
|
<div class="auth-card">
|
|
{% if messages %}
|
|
<div class="messages">
|
|
{% for m in messages %}
|
|
<div class="message {{ m.tags }}">{{ m }}</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|