Spaces:
Paused
Paused
File size: 13,239 Bytes
aaaaa79 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VPN Service - Authentication</title>
<link rel="stylesheet" href="auth.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
</head>
<body>
<div class="auth-container">
<!-- Background Animation -->
<div class="background-animation">
<div class="floating-shapes">
<div class="shape shape-1"></div>
<div class="shape shape-2"></div>
<div class="shape shape-3"></div>
<div class="shape shape-4"></div>
<div class="shape shape-5"></div>
</div>
</div>
<!-- Header -->
<header class="auth-header">
<div class="logo">
<i class="fas fa-shield-alt"></i>
<h1>SecureVPN</h1>
</div>
<nav class="auth-nav">
<button class="nav-btn" id="loginNavBtn" onclick="showLogin()">Login</button>
<button class="nav-btn" id="registerNavBtn" onclick="showRegister()">Register</button>
</nav>
</header>
<!-- Main Content -->
<main class="auth-main">
<!-- Login Form -->
<div class="auth-form-container" id="loginForm">
<div class="auth-form">
<div class="form-header">
<h2>Welcome Back</h2>
<p>Sign in to your VPN account</p>
</div>
<form id="loginFormElement" onsubmit="handleLogin(event)">
<div class="form-group">
<label for="loginField">Username or Email</label>
<div class="input-group">
<i class="fas fa-user"></i>
<input type="text" id="loginField" name="login" required
placeholder="Enter username or email">
</div>
</div>
<div class="form-group">
<label for="loginPassword">Password</label>
<div class="input-group">
<i class="fas fa-lock"></i>
<input type="password" id="loginPassword" name="password" required
placeholder="Enter password">
<button type="button" class="password-toggle" onclick="togglePassword('loginPassword')">
<i class="fas fa-eye"></i>
</button>
</div>
</div>
<div class="form-options">
<label class="checkbox-container">
<input type="checkbox" id="rememberMe">
<span class="checkmark"></span>
Remember me
</label>
<a href="#" class="forgot-password" onclick="showForgotPassword()">Forgot password?</a>
</div>
<button type="submit" class="auth-btn primary" id="loginBtn">
<span class="btn-text">Sign In</span>
<span class="btn-loader" style="display: none;">
<i class="fas fa-spinner fa-spin"></i>
</span>
</button>
</form>
<div class="form-footer">
<p>Don't have an account? <a href="#" onclick="showRegister()">Sign up</a></p>
</div>
</div>
</div>
<!-- Register Form -->
<div class="auth-form-container" id="registerForm" style="display: none;">
<div class="auth-form">
<div class="form-header">
<h2>Create Account</h2>
<p>Join our secure VPN service</p>
</div>
<form id="registerFormElement" onsubmit="handleRegister(event)">
<div class="form-group">
<label for="registerUsername">Username</label>
<div class="input-group">
<i class="fas fa-user"></i>
<input type="text" id="registerUsername" name="username" required
placeholder="Choose a username" minlength="3" maxlength="80">
</div>
<div class="field-hint">3-80 characters, letters, numbers, hyphens, and underscores only</div>
</div>
<div class="form-group">
<label for="registerEmail">Email</label>
<div class="input-group">
<i class="fas fa-envelope"></i>
<input type="email" id="registerEmail" name="email" required
placeholder="Enter your email">
</div>
</div>
<div class="form-group">
<label for="registerPassword">Password</label>
<div class="input-group">
<i class="fas fa-lock"></i>
<input type="password" id="registerPassword" name="password" required
placeholder="Create a strong password" minlength="8">
<button type="button" class="password-toggle" onclick="togglePassword('registerPassword')">
<i class="fas fa-eye"></i>
</button>
</div>
<div class="password-strength" id="passwordStrength">
<div class="strength-bar">
<div class="strength-fill"></div>
</div>
<div class="strength-text">Password strength</div>
</div>
</div>
<div class="form-group">
<label for="confirmPassword">Confirm Password</label>
<div class="input-group">
<i class="fas fa-lock"></i>
<input type="password" id="confirmPassword" name="confirmPassword" required
placeholder="Confirm your password">
<button type="button" class="password-toggle" onclick="togglePassword('confirmPassword')">
<i class="fas fa-eye"></i>
</button>
</div>
</div>
<div class="form-group">
<label for="subscriptionType">Subscription Plan</label>
<div class="subscription-options">
<label class="radio-option">
<input type="radio" name="subscriptionType" value="free" checked>
<span class="radio-custom"></span>
<div class="option-content">
<strong>Free</strong>
<span>1 device, 10 Mbps</span>
</div>
</label>
<label class="radio-option">
<input type="radio" name="subscriptionType" value="premium">
<span class="radio-custom"></span>
<div class="option-content">
<strong>Premium</strong>
<span>3 devices, 50 Mbps</span>
</div>
</label>
<label class="radio-option">
<input type="radio" name="subscriptionType" value="enterprise">
<span class="radio-custom"></span>
<div class="option-content">
<strong>Enterprise</strong>
<span>10 devices, 100 Mbps</span>
</div>
</label>
</div>
</div>
<div class="form-group">
<label class="checkbox-container">
<input type="checkbox" id="agreeTerms" required>
<span class="checkmark"></span>
I agree to the <a href="#" target="_blank">Terms of Service</a> and <a href="#" target="_blank">Privacy Policy</a>
</label>
</div>
<button type="submit" class="auth-btn primary" id="registerBtn">
<span class="btn-text">Create Account</span>
<span class="btn-loader" style="display: none;">
<i class="fas fa-spinner fa-spin"></i>
</span>
</button>
</form>
<div class="form-footer">
<p>Already have an account? <a href="#" onclick="showLogin()">Sign in</a></p>
</div>
</div>
</div>
<!-- Forgot Password Form -->
<div class="auth-form-container" id="forgotPasswordForm" style="display: none;">
<div class="auth-form">
<div class="form-header">
<h2>Reset Password</h2>
<p>Enter your email to receive reset instructions</p>
</div>
<form id="forgotPasswordFormElement" onsubmit="handleForgotPassword(event)">
<div class="form-group">
<label for="forgotEmail">Email</label>
<div class="input-group">
<i class="fas fa-envelope"></i>
<input type="email" id="forgotEmail" name="email" required
placeholder="Enter your email">
</div>
</div>
<button type="submit" class="auth-btn primary" id="forgotPasswordBtn">
<span class="btn-text">Send Reset Link</span>
<span class="btn-loader" style="display: none;">
<i class="fas fa-spinner fa-spin"></i>
</span>
</button>
</form>
<div class="form-footer">
<p><a href="#" onclick="showLogin()">Back to login</a></p>
</div>
</div>
</div>
</main>
<!-- Alert Messages -->
<div class="alert-container" id="alertContainer"></div>
<!-- Features Section -->
<section class="features-section">
<div class="features-container">
<h3>Why Choose SecureVPN?</h3>
<div class="features-grid">
<div class="feature-item">
<i class="fas fa-shield-alt"></i>
<h4>Military-Grade Encryption</h4>
<p>AES-256 encryption protects your data</p>
</div>
<div class="feature-item">
<i class="fas fa-globe"></i>
<h4>Global Servers</h4>
<p>Connect from anywhere in the world</p>
</div>
<div class="feature-item">
<i class="fas fa-bolt"></i>
<h4>Lightning Fast</h4>
<p>Optimized for speed and performance</p>
</div>
<div class="feature-item">
<i class="fas fa-user-secret"></i>
<h4>No Logs Policy</h4>
<p>Your privacy is our priority</p>
</div>
</div>
</div>
</section>
</div>
<script src="auth.js"></script>
</body>
</html>
|