Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
154 lines (140 loc) · 7.43 KB
/
Copy pathindex.html
File metadata and controls
154 lines (140 loc) · 7.43 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>APEC - Secure Sign In</title>
<!-- Modern Typography -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Ambient Background Blobs -->
<div class="ambient-light blob-1"></div>
<div class="ambient-light blob-2"></div>
<div class="ambient-light blob-3"></div>
<main class="page-container">
<div class="login-card">
<!-- Round Logo Container Above Form -->
<div class="logo-header">
<div class="round-logo-wrapper">
<img src="apec-logo.png" alt="APEC Logo" class="round-logo">
</div>
</div>
<!-- Header Text -->
<div class="card-header">
<h2>ADHIPARASAKTHI ENGINEERING COLLEGE</h2>
</div>
<!-- Login Form -->
<form class="login-form" id="loginForm" onsubmit="handleLogin(event)">
<!-- Username / Email Input -->
<div class="input-group">
<label for="email">Email or Username</label>
<div class="input-wrapper">
<svg class="input-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path>
<polyline points="22,6 12,13 2,6"></polyline>
</svg>
<input type="email" id="email" placeholder="[email protected]" required autocomplete="email">
</div>
</div>
<!-- Password Input -->
<div class="input-group">
<label for="password">Password</label>
<div class="input-wrapper">
<svg class="input-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect>
<path d="M7 11V7a5 5 0 0 1 10 0v4"></path>
</svg>
<input type="password" id="password" placeholder="••••••••" required autocomplete="current-password">
<button type="button" class="toggle-password-btn" id="togglePasswordBtn" title="Toggle password visibility">
<svg id="eyeIcon" class="eye-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
<circle cx="12" cy="12" r="3"></circle>
</svg>
</button>
</div>
</div>
<!-- Form Options -->
<div class="form-options">
<label class="custom-checkbox">
<input type="checkbox" id="rememberMe">
<span class="checkmark"></span>
<span class="label-text">Remember me</span>
</label>
<a href="#" class="forgot-password">Forgot password?</a>
</div>
<!-- Submit Button -->
<button type="submit" class="submit-btn">
<span>Sign In</span>
<svg class="btn-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<line x1="5" y1="12" x2="19" y2="12"></line>
<polyline points="12 5 19 12 12 19"></polyline>
</svg>
</button>
</form>
<!-- Divider -->
<div class="divider">
<span>or continue with</span>
</div>
<!-- Social Authentication Buttons -->
<div class="social-login-grid">
<button type="button" class="social-btn">
<svg viewBox="0 0 24 24" width="18" height="18">
<path fill="#EA4335" d="M12 5c1.6 0 3 .6 4.1 1.6l3.1-3.1C17.3 1.7 14.8 1 12 1 7.4 1 3.5 3.6 1.6 7.4l3.7 2.9C6.2 7.3 8.8 5 12 5z"/>
<path fill="#4285F4" d="M23.5 12.3c0-.8-.1-1.6-.2-2.3H12v4.5h6.5c-.3 1.5-1.1 2.8-2.4 3.7l3.7 2.9c2.2-2 3.7-5 3.7-8.8z"/>
<path fill="#FBBC05" d="M5.3 14.8c-.2-.7-.4-1.5-.4-2.3s.2-1.6.4-2.3L1.6 7.3C.6 9.3 0 11.6 0 14s.6 4.7 1.6 6.7l3.7-2.9z"/>
<path fill="#34A853" d="M12 23c3.2 0 6-1.1 8-3l-3.7-2.9c-1.1.7-2.5 1.2-4.3 1.2-3.2 0-5.8-2.3-6.7-5.3L1.6 16C3.5 19.8 7.4 23 12 23z"/>
</svg>
<span>Google</span>
</button>
</div>
<!-- Footer Sign up Link -->
<div class="card-footer">
<p>Don't have an account? <a href="#">Create account</a></p>
</div>
</div>
</main>
<!-- Interactive Logic -->
<script>
// Password Visibility Toggle
const togglePasswordBtn = document.getElementById('togglePasswordBtn');
const passwordInput = document.getElementById('password');
const eyeIcon = document.getElementById('eyeIcon');
togglePasswordBtn.addEventListener('click', () => {
const isPassword = passwordInput.getAttribute('type') === 'password';
passwordInput.setAttribute('type', isPassword ? 'text' : 'password');
if (isPassword) {
eyeIcon.innerHTML = `
<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path>
<line x1="1" y1="1" x2="23" y2="23"></line>
`;
} else {
eyeIcon.innerHTML = `
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
<circle cx="12" cy="12" r="3"></circle>
`;
}
});
// Form Submission Handler
function handleLogin(event) {
event.preventDefault();
const submitBtn = document.querySelector('.submit-btn');
submitBtn.style.opacity = '0.85';
submitBtn.innerHTML = `<span>Signing in...</span>`;
setTimeout(() => {
submitBtn.style.opacity = '1';
submitBtn.innerHTML = `
<span>Success!</span>
<svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2.5">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
`;
submitBtn.style.background = 'linear-gradient(135deg, #10b981 0%, #059669 100%)';
}, 1000);
}
</script>
</body>
</html>