Redesign admin login and update Sirkul browser branding

This commit is contained in:
Yared Yemane 2026-11-02 13:23:04 +03:00
parent 2daf20288a
commit 9d5099284a
4 changed files with 92 additions and 330 deletions

View File

@ -2,10 +2,10 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg?v=academy-2" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Manage makeup artistry courses, students, and academy operations with Rezina Academy." />
<title>Rezina Academy | Makeup Artistry Admin</title>
<title>Sirkul Makeup School Studio</title>
<script>
(function () {
var key = "rezina-admin-theme";

View File

@ -1,8 +1,6 @@
<svg width="170" height="196" viewBox="0 0 170 196" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M117.067 182.177C115.877 197.212 110.275 195.264 85.2333 195.212C84.4448 195.21 75.1908 196.597 70.8903 191.049C65.6205 184.25 72.0278 153.148 66.6476 148.541C35.4189 121.795 4.51062 115.662 0.0823302 67.1799C-1.67884 47.8957 25.4175 31.9131 23.7554 61.6575C23.719 62.3058 22.9739 65.1635 25.0985 62.8067C29.2141 58.2412 41.0922 63.3382 31.2926 74.5349C28.6322 77.5748 24.8148 77.7486 29.7086 86.6516C31.7965 90.4499 32.1575 90.3838 32.4261 90.1526C41.4869 82.3661 45.6132 74.0124 53.4047 80.4715C54.0587 81.0137 84.7318 107.292 87.455 109.625C94.8854 115.991 95.9815 110.8 108.517 100.555C133.126 80.4434 138.456 71.3292 144.851 76.8954C171.122 99.7616 171.024 101.369 169.414 104.755C166.698 110.466 118.649 145.024 117.265 151.52C117.004 152.747 117.06 155.903 117.067 182.176V182.177Z" fill="#9E2891"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M95.9691 7.04231C107.402 12.0196 133.385 46.145 132.81 49.3317C132.545 50.7992 131.661 50.4639 115.134 43.4362C88.5694 32.1406 77.2952 56.2361 54.3034 49.0066C52.8236 48.5409 50.3187 46.5017 62.8984 31.6198C77.3155 14.5642 81.6895 4.59241 95.9691 7.04231Z" fill="#9E2891"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M104.13 80.7417C101.825 93.3925 78.112 87.9719 81.2646 79.2604C83.4853 73.1244 89.8626 86.8841 97.1122 80.5444C97.7996 79.9435 102.375 73.8938 104.13 80.7417Z" fill="#9E2891"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M67.3682 66.1875C67.5867 65.3843 69.8818 56.9538 76.5731 61.3381C85.3369 67.0807 70.2095 79.6629 67.3682 66.1875Z" fill="#9E2891"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M106.098 66.1791C106.299 65.3769 108.584 56.2798 115.233 61.3404C123.931 67.9593 108.563 79.161 106.098 66.1791Z" fill="#9E2891"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M89.5097 3.27682C89.8473 3.71664 89.8388 3.7058 90.174 4.14097C91.8303 6.28896 92.274 4.5622 94.3639 1.95891C96.0729 -0.16895 96.6436 -0.723371 98.6653 1.09553C100.365 2.62483 99.0602 3.86144 97.4946 5.84759C96.4128 7.21893 96.3423 7.28397 96.4213 7.96074C96.4988 8.62279 96.7775 8.4323 98.8574 9.274C105.076 11.7913 99.5535 16.8431 88.6765 15.9038C82.979 15.4121 79.9885 12.8584 81.4551 10.8831C83.1269 8.63131 86.2172 9.03241 86.4046 7.96926C86.5788 6.97811 85.8719 6.46241 85.0635 5.44804C82.9534 2.79983 82.852 2.17959 84.6577 0.764118C86.7856 -0.903788 87.5932 0.850068 89.5097 3.27682Z" fill="#9E2891"/>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
<title>Sirkul Makeup Academy</title>
<rect width="64" height="64" rx="10" fill="#111111"/>
<path d="M44 17C39 11 24 12 20 20c-6 12 24 9 23 21-1 12-22 13-28 4" fill="none" stroke="#ffffff" stroke-width="4.5" stroke-linecap="round"/>
<path d="M15 52c10-9 24-13 36-14" fill="none" stroke="#ffffff" stroke-width="2" stroke-linecap="round"/>
</svg>

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 413 B

View File

@ -918,3 +918,22 @@
}
}
}
/* Scoped login surface: neutral, sculptural folds inspired by the academy identity. */
.academy-login { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; background: #18191e; color: #fff; }
.academy-login-art { position: relative; display: flex; align-items: center; min-height: 100dvh; overflow: hidden; background: #0c0d10; }
.academy-login-waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.academy-login-welcome { position: absolute; top: 6%; left: 7%; color: #fff; font-size: 22px; line-height: 1.35; letter-spacing: -.025em; }
.academy-login-brand { position: relative; z-index: 1; width: 100%; padding: 80px 9% 80px 24%; }
.academy-login-art-footer { position: absolute; bottom: 5%; left: 7%; right: 7%; display: flex; justify-content: space-between; gap: 20px; font-size: 8px; letter-spacing: .18em; color: rgb(255 255 255 / .5); }
.academy-login-panel { display: flex; align-items: center; justify-content: center; padding: 64px 48px; background: radial-gradient(ellipse at 100% 0%, #2b2c32 0%, transparent 65%), #1c1d22; box-shadow: -22px 0 60px rgb(0 0 0 / .2); z-index: 1; }
.academy-login-form-wrap { width: 100%; max-width: 380px; }
.academy-login .academy-login-input { height: 50px; border-radius: 6px; border-color: rgb(255 255 255 / .35); background: rgb(255 255 255 / .025); color: #fff; box-shadow: none; font-size: 13px; }
.academy-login .academy-login-input::placeholder { color: rgb(255 255 255 / .38); }
.academy-login .academy-login-input:focus-visible { border-color: #fff; outline: 2px solid rgb(255 255 255 / .25); outline-offset: 3px; --tw-ring-color: transparent; --tw-ring-offset-color: transparent; }
.academy-login .academy-login-input[aria-invalid="true"] { border-color: #fca5a5; }
.academy-login .academy-login-submit { background: #f5f5f5; border: 1px solid #f5f5f5; color: #18191e; box-shadow: none; }
.academy-login .academy-login-submit:hover { background: #dcdde0; border-color: #dcdde0; }
@media (min-width: 1600px) { .academy-login-brand { padding-left: 28%; } }
@media (max-width: 1023px) { .academy-login { grid-template-columns: 1fr; } .academy-login-art { display: none; } .academy-login-panel { min-height: 100dvh; padding: 48px 24px; } }
@media (max-width: 359px) { .academy-login-panel { padding: 32px 20px; } }

View File

@ -1,5 +1,5 @@
import { Eye, EyeOff } from "lucide-react";
import { useCallback, useEffect, useRef, useState } from "react";
import { ArrowRight, Eye, EyeOff, LockKeyhole } from "lucide-react";
import { useCallback, useEffect, useState } from "react";
import { Link, Navigate, useNavigate, useSearchParams } from "react-router-dom";
import { getApiErrorMessage } from "../../lib/apiErrors";
@ -7,67 +7,17 @@ import { BrandLogo } from "../../components/brand/BrandLogo";
import { Button } from "../../components/ui/button";
import { Input } from "../../components/ui/input";
import { Label } from "../../components/ui/label";
import { SpinnerIcon } from "../../components/ui/spinner-icon";
import { toast } from "sonner";
import type { LoginResult } from "../../api/auth.api";
import { login, loginWithGoogle } from "../../api/auth.api";
import { login } from "../../api/auth.api";
import { getDefaultAppHome } from "../../lib/adminAccess";
import { getAccessToken, saveTeamSessionFromLoginResult } from "../../lib/teamAuthStorage";
import { getNormalizedSessionTeamRole } from "../../lib/teamRole";
import type { LoginRequest } from "../../types/auth.types";
declare global {
interface Window {
google?: {
accounts: {
id: {
initialize: (config: {
client_id: string;
callback: (response: { credential: string }) => void;
auto_select?: boolean;
}) => void;
renderButton: (
element: HTMLElement,
config: {
theme?: string;
size?: string;
width?: number;
text?: string;
shape?: string;
logo_alignment?: string;
}
) => void;
};
};
};
}
}
function GoogleIcon({ className }: { className?: string }) {
return (
<svg className={className} viewBox="0 0 24 24" fill="none">
<path
d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1Z"
fill="#4285F4"
/>
<path
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"
fill="#34A853"
/>
<path
d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18A10.96 10.96 0 0 0 1 12c0 1.77.42 3.45 1.18 4.93l3.66-2.84Z"
fill="#FBBC05"
/>
<path
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.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53Z"
fill="#EA4335"
/>
</svg>
);
}
export function LoginPage() {
const navigate = useNavigate();
const [searchParams, setSearchParams] = useSearchParams();
@ -102,12 +52,9 @@ export function LoginPage() {
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");
const [loading, setLoading] = useState(false);
const [googleLoading, setGoogleLoading] = useState(false);
const [error, setError] = useState<string | null>(null);
const [googleReady, setGoogleReady] = useState(false);
const [fieldErrors, setFieldErrors] = useState<{ email?: string; password?: string }>({});
const googleBtnRef = useRef<HTMLDivElement>(null);
const storeTokensAndRedirect = useCallback(
(result: LoginResult) => {
@ -120,72 +67,6 @@ export function LoginPage() {
[navigate]
);
const handleGoogleCallback = useCallback(
async (response: { credential: string }) => {
setError(null);
setGoogleLoading(true);
try {
const result = await loginWithGoogle(response.credential);
storeTokensAndRedirect(result);
} catch (err: unknown) {
setError(
getApiErrorMessage(err, "Google sign-in failed. Please try again.")
);
} finally {
setGoogleLoading(false);
}
},
[storeTokensAndRedirect]
);
// Load Google Identity Services script
useEffect(() => {
const clientId = import.meta.env.VITE_GOOGLE_CLIENT_ID;
if (!clientId) return;
// If already loaded
if (window.google?.accounts) {
setGoogleReady(true);
return;
}
const script = document.createElement("script");
script.src = "https://accounts.google.com/gsi/client";
script.async = true;
script.defer = true;
script.onload = () => setGoogleReady(true);
document.head.appendChild(script);
return () => {
// Cleanup only if we added it
if (document.head.contains(script)) {
document.head.removeChild(script);
}
};
}, []);
// Initialize Google button once ready
useEffect(() => {
const clientId = import.meta.env.VITE_GOOGLE_CLIENT_ID;
if (!googleReady || !clientId || !window.google?.accounts) return;
window.google.accounts.id.initialize({
client_id: clientId,
callback: handleGoogleCallback,
});
if (googleBtnRef.current) {
// Render the hidden native button (we use our own styled button)
window.google.accounts.id.renderButton(googleBtnRef.current, {
theme: "outline",
size: "large",
width: 400,
text: "signin_with",
shape: "rectangular",
});
}
}, [googleReady, handleGoogleCallback]);
if (token) {
return <Navigate to={getDefaultAppHome(getNormalizedSessionTeamRole())} replace />;
}
@ -217,219 +98,83 @@ export function LoginPage() {
}
};
const handleGoogleClick = () => {
// Click the hidden Google button to trigger the native popup
const iframe = googleBtnRef.current?.querySelector("iframe");
const innerBtn =
googleBtnRef.current?.querySelector('[role="button"]') as HTMLElement | null;
if (innerBtn) {
innerBtn.click();
} else if (iframe) {
// Fallback: the native button may render as an iframe
iframe.click();
}
};
const googleClientId = import.meta.env.VITE_GOOGLE_CLIENT_ID;
return (
<div className="relative flex min-h-dvh overflow-y-auto bg-background">
{/* Decorative left panel */}
<div className="hidden lg:flex lg:w-1/2 xl:w-[55%] items-center justify-center bg-[#111111] relative">
{/* Abstract decorative shapes */}
<div className="absolute inset-0 overflow-hidden">
<div className="absolute -left-20 -top-20 h-96 w-96 rounded-full border border-white/10" />
<div className="absolute -bottom-32 -right-16 h-[500px] w-[500px] rounded-full border border-white/10" />
<div className="absolute left-1/3 top-1/4 h-64 w-64 rounded-full bg-[#D4D4D4]/10 blur-3xl" />
<div className="absolute bottom-1/4 left-1/4 h-48 w-48 rotate-45 rounded-3xl bg-white/[0.03]" />
</div>
<div className="relative z-10 max-w-lg px-12 text-left">
{/* Brand logo */}
<BrandLogo variant="light" className="mb-20 h-14" />
<p className="mb-5 text-xs font-semibold uppercase tracking-[0.28em] text-[#D4D4D4]">MAKEUP ARTISTRY / ACADEMY WORKSPACE</p>
<h2 className="max-w-md text-5xl font-semibold leading-[1.08] tracking-tight text-white xl:text-6xl">The art of beauty. The craft of teaching.</h2>
<p className="mt-6 max-w-sm text-base leading-relaxed text-white/65">
Nurture creative talent, curate makeup artistry lessons, and
guide every student from first brushstroke to professional confidence.
</p>
<div className="mt-14 flex items-center gap-3 text-sm text-white/70">
<span className="h-2 w-2 rounded-full bg-[#D4D4D4]" />
<span>Rezina Academy · Admin workspace</span>
</div>
</div>
</div>
{/* Right panel – login form */}
<div className="flex w-full flex-col items-center justify-center bg-background px-6 py-12 lg:w-1/2 xl:w-[45%]">
<div className="w-full max-w-[420px] rounded-[10px] border border-border bg-card px-7 py-9 shadow-[0_24px_70px_rgba(0,0,0,0.08)] sm:px-10 sm:py-11">
{/* Mobile-only logo */}
<div className="mb-10 flex justify-center lg:hidden">
<BrandLogo />
</div>
{/* Header */}
<div className="mb-10">
<p className="mb-2 text-xs font-semibold uppercase tracking-[0.2em] text-brand-600">
Admin Portal
</p>
<h1 className="mb-2 text-4xl font-semibold tracking-tight text-foreground">
Welcome back
</h1>
<p className="text-sm leading-relaxed text-muted-foreground">
Sign in to your account to continue
</p>
</div>
{/* Error */}
{error && (
<div className="mb-6 flex items-start gap-3 rounded-xl border border-red-200 bg-red-50 px-4 py-3.5 text-sm text-red-600">
<svg
className="mt-0.5 h-4 w-4 shrink-0"
viewBox="0 0 20 20"
fill="currentColor"
>
<path
fillRule="evenodd"
d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z"
clipRule="evenodd"
/>
<main className="academy-login">
<section className="academy-login-art" aria-label="Rezina makeup academy">
<svg className="academy-login-waves" viewBox="0 0 800 1000" preserveAspectRatio="none" aria-hidden="true">
<defs>
<linearGradient id="login-fold" x1="0" y1="0" x2="1" y2="1">
<stop stopColor="#565961" /><stop offset="0.5" stopColor="#24262c" /><stop offset="1" stopColor="#090a0d" />
</linearGradient>
<linearGradient id="login-shadow" x1="0" y1="0" x2="1" y2="0">
<stop stopColor="#111216" /><stop offset="0.65" stopColor="#35373f" /><stop offset="1" stopColor="#191a20" />
</linearGradient>
<filter id="login-depth" x="-50%" y="-30%" width="200%" height="160%">
<feDropShadow dx="18" dy="12" stdDeviation="18" floodOpacity="0.4" />
</filter>
</defs>
<path fill="#0c0d10" d="M0 0H800V1000H0Z" />
<g filter="url(#login-depth)">
<path fill="url(#login-fold)" d="M0 0H780C720 120 422 36 466 208C493 319 723 329 661 490C603 643 387 585 431 747C470 890 763 801 733 1000H0Z" />
<path fill="url(#login-shadow)" d="M0 0H601C635 144 320 130 367 305C400 429 600 442 506 582C420 712 277 670 324 818C350 908 563 906 554 1000H0Z" />
<path fill="url(#login-fold)" d="M0 0H443C460 156 202 153 222 341C234 448 433 477 361 629C295 770 144 735 197 890C215 943 306 954 296 1000H0Z" />
<path fill="#a8aaaf" d="M0 0H288C283 171 55 154 69 340C81 500 275 532 218 684C175 798 52 816 80 1000H0Z" />
</g>
</svg>
{error}
<p className="academy-login-welcome">Welcome<br />back.</p>
<div className="academy-login-brand">
<BrandLogo variant="light" className="h-20 max-w-full sm:h-24" />
<div className="mt-7 h-px w-12 bg-white/45" />
<p className="mt-6 text-xs font-medium uppercase tracking-[0.3em] text-white/65">The beauty academy</p>
<h2 className="mt-3 text-4xl font-medium leading-tight text-white sm:text-5xl">Artistry starts here.</h2>
</div>
)}
<p className="academy-login-art-footer">MAKEUP SCHOOL &amp; STUDIO <span>EST. FOR CREATIVITY</span></p>
</section>
{/* Google Sign-In Button */}
{googleClientId && (
<>
{/* Hidden native Google button */}
<div
ref={googleBtnRef}
className="absolute h-0 w-0 overflow-hidden opacity-0"
aria-hidden="true"
/>
<button
type="button"
onClick={handleGoogleClick}
disabled={googleLoading || !googleReady}
className="group mb-6 flex w-full items-center justify-center gap-3 rounded-xl border border-border bg-white px-4 py-3 text-sm font-medium text-foreground transition-all duration-200 hover:border-brand-300 hover:bg-brand-50 hover:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/30 disabled:cursor-not-allowed disabled:opacity-60"
>
{googleLoading ? (
<SpinnerIcon className="h-5 w-5" />
) : (
<GoogleIcon className="h-5 w-5 transition-transform duration-200 group-hover:scale-110" />
)}
{googleLoading ? "Signing in…" : "Continue with Google"}
</button>
{/* Divider */}
<div className="relative mb-6">
<div className="absolute inset-0 flex items-center">
<div className="w-full border-t border-grayScale-200" />
<section className="academy-login-panel">
<div className="academy-login-form-wrap">
<div className="mb-10 lg:hidden"><BrandLogo variant="light" className="h-14" /></div>
<div className="mb-10">
<p className="mb-4 flex items-center gap-2 text-[10px] font-medium uppercase tracking-[0.25em] text-white/50"><LockKeyhole size={13} aria-hidden="true" /> Academy workspace</p>
<h1 className="text-4xl font-medium tracking-tight text-white sm:text-5xl">Admin login</h1>
<p className="mt-4 max-w-sm text-sm leading-6 text-white/60">Your space to shape the next generation of makeup artists. Sign in to manage your academy.</p>
</div>
<div className="relative flex justify-center text-xs font-medium uppercase tracking-wider">
<span className="bg-white px-4 text-grayScale-400">
or sign in with email
</span>
</div>
</div>
</>
)}
<form onSubmit={handleSubmit} className="space-y-5" autoComplete="on" method="post" noValidate>
{/* Email */}
{error && <div role="alert" className="mb-6 rounded-md border border-red-300/30 bg-red-400/10 px-4 py-3 text-sm text-red-200">{error}</div>}
<form onSubmit={handleSubmit} className="space-y-6" autoComplete="on" method="post" noValidate aria-busy={loading}>
<div>
<Label
htmlFor="email"
className="mb-1.5 block text-sm font-medium text-foreground"
>
Email address
</Label>
<Input
id="email"
name="email"
type="email"
placeholder="you@example.com"
autoComplete="email"
value={email}
onChange={(e) => {
setEmail(e.target.value);
if (fieldErrors.email) setFieldErrors((prev) => ({ ...prev, email: undefined }));
}}
className={`h-11 rounded-xl ${fieldErrors.email ? "border-red-400 focus-visible:ring-red-400/40" : ""}`}
/>
{fieldErrors.email && (
<p className="mt-1.5 text-xs text-red-500">{fieldErrors.email}</p>
)}
<Label htmlFor="email" className="mb-2.5 block text-xs font-medium text-white/85">Email address</Label>
<Input id="email" name="email" type="email" placeholder="Enter your email" autoComplete="email" value={email}
aria-invalid={!!fieldErrors.email} aria-describedby={fieldErrors.email ? "email-error" : undefined}
onChange={(e) => {setEmail(e.target.value); if (fieldErrors.email) setFieldErrors((prev) => ({...prev, email: undefined}));}}
className={`academy-login-input ${fieldErrors.email ? "border-red-300" : ""}`} />
{fieldErrors.email && <p id="email-error" className="mt-2 text-xs text-red-200">{fieldErrors.email}</p>}
</div>
{/* Password */}
<div>
<div className="mb-1.5 flex items-center justify-between">
<Label
htmlFor="password"
className="block text-sm font-medium text-foreground"
>
Password
</Label>
<Link
to="/forgot-password"
className="text-xs font-semibold text-brand-600 transition-colors hover:text-brand-500"
>
Forgot password?
</Link>
</div>
<Label htmlFor="password" className="mb-2.5 block text-xs font-medium text-white/85">Password</Label>
<div className="relative">
<Input
id="password"
name="password"
type={showPassword ? "text" : "password"}
placeholder="••••••••"
autoComplete="current-password"
value={password}
onChange={(e) => {
setPassword(e.target.value);
if (fieldErrors.password) setFieldErrors((prev) => ({ ...prev, password: undefined }));
}}
className={`h-11 rounded-xl pr-10 ${fieldErrors.password ? "border-red-400 focus-visible:ring-red-400/40" : ""}`}
/>
<button
type="button"
onClick={() => setShowPassword(!showPassword)}
className="absolute right-3 top-1/2 -translate-y-1/2 text-grayScale-400 transition-colors hover:text-grayScale-600"
tabIndex={-1}
>
{showPassword ? <EyeOff size={18} /> : <Eye size={18} />}
<Input id="password" name="password" type={showPassword ? "text" : "password"} placeholder="Enter your password" autoComplete="current-password" value={password}
aria-invalid={!!fieldErrors.password} aria-describedby={fieldErrors.password ? "password-error" : undefined}
onChange={(e) => {setPassword(e.target.value); if (fieldErrors.password) setFieldErrors((prev) => ({...prev, password: undefined}));}}
className={`academy-login-input pr-12 ${fieldErrors.password ? "border-red-300" : ""}`} />
<button type="button" onClick={() => setShowPassword(!showPassword)} aria-label={showPassword ? "Hide password" : "Show password"} aria-pressed={showPassword}
className="absolute inset-y-0 right-0 flex w-12 items-center justify-center rounded-r-md text-white/50 transition hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/70">
{showPassword ? <EyeOff size={17} /> : <Eye size={17} />}
</button>
</div>
{fieldErrors.password && (
<p className="mt-1.5 text-xs text-red-500">{fieldErrors.password}</p>
)}
{fieldErrors.password && <p id="password-error" className="mt-2 text-xs text-red-200">{fieldErrors.password}</p>}
</div>
<Button
type="submit"
className="mt-2 h-12 w-full rounded-xl bg-brand-500 text-sm font-semibold tracking-wide text-white shadow-[0_8px_18px_rgba(0,0,0,0.18)] transition hover:bg-brand-600"
disabled={loading}
>
{loading ? "Signing in…" : "Sign in"}
<div className="flex justify-end"><Link to="/forgot-password" className="text-xs text-white/65 underline-offset-4 hover:text-white hover:underline">Forgot password?</Link></div>
<Button type="submit" disabled={loading} className="academy-login-submit h-12 w-full justify-between rounded-md px-5 text-sm font-semibold">
{loading ? "Signing in..." : "Sign in"}<ArrowRight size={17} aria-hidden="true" />
</Button>
</form>
{/* Footer */}
<div className="mt-9 border-t border-border pt-6 text-center text-xs text-grayScale-400">
<p>© {new Date().getFullYear()} Rezina Academy · All rights reserved</p>
</div>
</div>
</div>
{/* Version badge */}
<p className="fixed bottom-3 right-4 font-mono text-[10px] text-grayScale-300">
v{__BUILD_HASH__} · {new Date(__BUILD_TIME__).toLocaleDateString()}
</p>
<p className="mt-7 text-xs leading-5 text-white/40">Access is reserved for academy team members.<br />Contact your administrator if you need an account.</p>
<footer className="mt-14 flex flex-wrap items-center justify-between gap-3 border-t border-white/10 pt-5 text-[10px] text-white/35">
<span>&copy; {new Date().getFullYear()} Rezina Academy</span><span>v{__BUILD_HASH__}</span>
</footer>
</div>
</section>
</main>
);
}