diff --git a/app/globals.css b/app/globals.css index 5621fc0..b66ace5 100644 --- a/app/globals.css +++ b/app/globals.css @@ -65,7 +65,7 @@ --border: #2a2a2a; --input: #222222; --ring: #ff9800; - + /* HarifSport specific */ --hs-orange: #ff9800; --hs-maroon: #852222; @@ -109,6 +109,7 @@ * { @apply border-border outline-ring/50; } + body { @apply bg-background text-foreground; font-size: 13px; @@ -117,9 +118,17 @@ /* HarifSport odds button animation */ @keyframes odds-flash { - 0% { background-color: oklch(0.55 0.18 145); } - 50% { background-color: oklch(0.7 0.22 80); } - 100% { background-color: oklch(0.55 0.18 145); } + 0% { + background-color: oklch(0.55 0.18 145); + } + + 50% { + background-color: oklch(0.7 0.22 80); + } + + 100% { + background-color: oklch(0.55 0.18 145); + } } .odds-selected { @@ -128,22 +137,48 @@ /* Live pulse */ @keyframes live-pulse { - 0%, 100% { opacity: 1; } - 50% { opacity: 0.4; } + + 0%, + 100% { + opacity: 1; + } + + 50% { + opacity: 0.4; + } } .live-dot { animation: live-pulse 1.2s ease-in-out infinite; } +/* Auth modal fade-in */ +@keyframes fade-in { + from { + opacity: 0; + transform: translateY(-10px) scale(0.98); + } + + to { + opacity: 1; + transform: translateY(0) scale(1); + } +} + +.animate-fade-in { + animation: fade-in 0.18s ease-out both; +} + /* Scrollbar */ ::-webkit-scrollbar { width: 4px; height: 4px; } + ::-webkit-scrollbar-track { background: var(--background); } + ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; diff --git a/app/login/page.tsx b/app/login/page.tsx index 65a3808..cc75a26 100644 --- a/app/login/page.tsx +++ b/app/login/page.tsx @@ -2,55 +2,126 @@ import { useState } from "react" import Link from "next/link" +import { useRouter } from "next/navigation" export default function LoginPage() { - const [username, setUsername] = useState("") + const router = useRouter() + const [phone, setPhone] = useState("") const [password, setPassword] = useState("") return ( -
Sign in to your Harifsport account
-Join Harifsport today
+ /* Full-screen dark backdrop */ +Please verify your phone number to start betting.
- + {/* Form */} +- Already have an account?{" "} - Login -
- )} + {/* Password */} ++ + Support + +
+ + {/* Login link */} ++ Already have an account?{" "} + + Login + +
+ + Support + +
+ + {/* Toggle mode */} +
+ {mode === "login" ? (
+ <>
+ Don't have an account?{" "}
+