Update index.html
1 file changed+71−19
index.html+71−19View file
| @@ -1085,7 +1085,7 @@ | ||
| </div> | ||
| <!-- Quick 1-Click Demo Section --> | ||
| - <div class="p-5 bg-indigo-50/50 border-b border-indigo-100"> | ||
| + <div id="auth-demo-section" class="p-5 bg-indigo-50/50 border-b border-indigo-100"> | ||
| <div class="flex items-center justify-between mb-2"> | ||
| <span class="text-[11px] font-bold uppercase tracking-wider text-indigo-900 flex items-center gap-1.5"> | ||
| <svg class="w-3.5 h-3.5 text-indigo-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | ||
| @@ -1116,7 +1116,7 @@ | ||
| </div> | ||
| <!-- Mode Selector Tabs --> | ||
| - <div class="px-6 pt-4 pb-1"> | ||
| + <div id="auth-mode-tabs" class="px-6 pt-4 pb-1"> | ||
| <div class="grid grid-cols-2 bg-slate-100 p-1 rounded-xl"> | ||
| <button type="button" id="tab-auth-login" onclick="setAuthModalMode('login')" | ||
| class="py-1.5 text-xs font-bold rounded-lg text-indigo-700 bg-white shadow-sm transition"> | ||
| @@ -1156,7 +1156,10 @@ | ||
| class="w-full text-sm p-2.5 rounded-xl border border-slate-300 focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none"> | ||
| </div> | ||
| <div> | ||
| - <label for="auth-login-password" class="block text-xs font-semibold text-slate-700 uppercase mb-1">Password *</label> | ||
| + <div class="flex items-center justify-between mb-1"> | ||
| + <label for="auth-login-password" class="block text-xs font-semibold text-slate-700 uppercase">Password *</label> | ||
| + <button type="button" onclick="setAuthModalMode('forgot')" class="text-xs text-indigo-600 hover:text-indigo-800 hover:underline font-medium">Forgot Password?</button> | ||
| + </div> | ||
| <input type="password" id="auth-login-password" required placeholder="••••••••" autocomplete="current-password" | ||
| class="w-full text-sm p-2.5 rounded-xl border border-slate-300 focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none"> | ||
| </div> | ||
| @@ -1193,33 +1196,82 @@ | ||
| <div> | ||
| <label class="block text-xs font-semibold text-slate-700 uppercase mb-1.5">Account Role *</label> | ||
| <div class="grid grid-cols-2 gap-3"> | ||
| - <label class="cursor-pointer border-2 rounded-2xl p-3 flex flex-col items-center text-center transition border-indigo-500 bg-indigo-50/50" id="role-card-freelancer"> | ||
| - <input type="radio" name="auth-role" value="freelancer" checked onchange="updateRoleCardSelection()" class="sr-only"> | ||
| - <svg class="w-5 h-5 text-indigo-600 mb-1" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | ||
| - <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" /> | ||
| + <label class="cursor-pointer border-2 rounded-2xl p-3 flex flex-col items-center text-center transition border-indigo-500 bg-indigo-50/50" id=\"role-card-freelancer\"> | ||
| + <input type=\"radio\" name=\"auth-role\" value=\"freelancer\" checked onchange=\"updateRoleCardSelection()\" class=\"sr-only\"> | ||
| + <svg class=\"w-5 h-5 text-indigo-600 mb-1\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\"> | ||
| + <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z\" /> | ||
| </svg> | ||
| - <span class="text-xs font-bold text-slate-800">Freelancer</span> | ||
| - <span class="text-[10px] text-slate-500 mt-0.5">Log hours, submit timesheets</span> | ||
| + <span class=\"text-xs font-bold text-slate-800\">Freelancer</span> | ||
| + <span class=\"text-[10px] text-slate-500 mt-0.5\">Log hours, submit timesheets</span> | ||
| </label> | ||
| - <label class="cursor-pointer border-2 rounded-2xl p-3 flex flex-col items-center text-center transition border-slate-200 hover:border-slate-300" id="role-card-admin"> | ||
| - <input type="radio" name="auth-role" value="admin" onchange="updateRoleCardSelection()" class="sr-only"> | ||
| - <svg class="w-5 h-5 text-slate-500 mb-1" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | ||
| - <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z" /> | ||
| + <label class=\"cursor-pointer border-2 rounded-2xl p-3 flex flex-col items-center text-center transition border-slate-200 hover:border-slate-300\" id=\"role-card-admin\"> | ||
| + <input type=\"radio\" name=\"auth-role\" value=\"admin\" onchange=\"updateRoleCardSelection()\" class=\"sr-only\"> | ||
| + <svg class=\"w-5 h-5 text-slate-500 mb-1\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\"> | ||
| + <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z\" /> | ||
| </svg> | ||
| - <span class="text-xs font-bold text-slate-800">Project Admin</span> | ||
| - <span class="text-[10px] text-slate-500 mt-0.5">Validate queue, manage projects</span> | ||
| + <span class=\"text-xs font-bold text-slate-800\">Project Admin</span> | ||
| + <span class=\"text-[10px] text-slate-500 mt-0.5\">Validate queue, manage projects</span> | ||
| </label> | ||
| </div> | ||
| </div> | ||
| - <button type="submit" id="auth-reg-submit-btn" | ||
| - class="w-full py-2.5 bg-indigo-600 hover:bg-indigo-700 text-white text-xs font-bold rounded-xl shadow-md transition flex items-center justify-center gap-2"> | ||
| + <button type=\"submit\" id=\"auth-reg-submit-btn\" | ||
| + class=\"w-full py-2.5 bg-indigo-600 hover:bg-indigo-700 text-white text-xs font-bold rounded-xl shadow-md transition flex items-center justify-center gap-2\"> | ||
| <span>Create Account</span> | ||
| </button> | ||
| - <p class="text-center text-xs text-slate-500 pt-1"> | ||
| + <p class=\"text-center text-xs text-slate-500 pt-1\"> | ||
| Already have an account? | ||
| - <button type="button" onclick="setAuthModalMode('login')" class="text-indigo-600 hover:underline font-semibold">Sign in</button> | ||
| + <button type=\"button\" onclick=\"setAuthModalMode('login')\" class=\"text-indigo-600 hover:underline font-semibold\">Sign in</button> | ||
| + </p> | ||
| + </form> | ||
| + | ||
| + <!-- Forgot Password Form --> | ||
| + <form id=\"form-auth-forgot\" onsubmit=\"handleAuthForgotSubmit(event)\" class=\"hidden p-6 space-y-4\"> | ||
| + <p class=\"text-xs text-slate-600 leading-relaxed\"> | ||
| + Enter your account email address below and we'll send you a link to reset your password. | ||
| + </p> | ||
| + <div> | ||
| + <label for=\"auth-forgot-email\" class=\"block text-xs font-semibold text-slate-700 uppercase mb-1\">Email Address *</label> | ||
| + <input type=\"email\" id=\"auth-forgot-email\" required placeholder=\"name@example.com\" autocomplete=\"email\" | ||
| + class=\"w-full text-sm p-2.5 rounded-xl border border-slate-300 focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none\"> | ||
| + </div> | ||
| + | ||
| + <button type=\"submit\" id=\"auth-forgot-submit-btn\" | ||
| + class=\"w-full py-2.5 bg-indigo-600 hover:bg-indigo-700 text-white text-xs font-bold rounded-xl shadow-md transition flex items-center justify-center gap-2\"> | ||
| + <span>Send Reset Link</span> | ||
| + </button> | ||
| + | ||
| + <p class=\"text-center text-xs text-slate-500 pt-1\"> | ||
| + Remembered your password? | ||
| + <button type=\"button\" onclick=\"setAuthModalMode('login')\" class=\"text-indigo-600 hover:underline font-semibold\">Back to Sign In</button> | ||
| + </p> | ||
| + </form> | ||
| + | ||
| + <!-- Reset Password Form --> | ||
| + <form id=\"form-auth-reset\" onsubmit=\"handleAuthResetSubmit(event)\" class=\"hidden p-6 space-y-4\"> | ||
| + <input type=\"hidden\" id=\"auth-reset-token\" value=\"\"> | ||
| + <p class=\"text-xs text-slate-600 leading-relaxed\"> | ||
| + Choose a new, secure password for your account below. | ||
| + </p> | ||
| + <div> | ||
| + <label for=\"auth-reset-password\" class=\"block text-xs font-semibold text-slate-700 uppercase mb-1\">New Password *</label> | ||
| + <input type=\"password\" id=\"auth-reset-password\" required minlength=\"6\" placeholder=\"At least 6 characters\" autocomplete=\"new-password\" | ||
| + class=\"w-full text-sm p-2.5 rounded-xl border border-slate-300 focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none\"> | ||
| + </div> | ||
| + <div> | ||
| + <label for=\"auth-reset-password-confirm\" class=\"block text-xs font-semibold text-slate-700 uppercase mb-1\">Confirm New Password *</label> | ||
| + <input type=\"password\" id=\"auth-reset-password-confirm\" required minlength=\"6\" placeholder=\"Re-enter new password\" autocomplete=\"new-password\" | ||
| + class=\"w-full text-sm p-2.5 rounded-xl border border-slate-300 focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none\"> | ||
| + </div> | ||
| + | ||
| + <button type=\"submit\" id=\"auth-reset-submit-btn\" | ||
| + class=\"w-full py-2.5 bg-indigo-600 hover:bg-indigo-700 text-white text-xs font-bold rounded-xl shadow-md transition flex items-center justify-center gap-2\"> | ||
| + <span>Update Password</span> | ||
| + </button> | ||
| + | ||
| + <p class=\"text-center text-xs text-slate-500 pt-1\"> | ||
| + <button type=\"button\" onclick=\"setAuthModalMode('login')\" class=\"text-indigo-600 hover:underline font-semibold\">Back to Sign In</button> | ||
| </p> | ||
| </form> | ||
| </div> | ||