-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathauth.css
More file actions
185 lines (160 loc) · 3.54 KB
/
Copy pathauth.css
File metadata and controls
185 lines (160 loc) · 3.54 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
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
/* Base style */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', sans-serif;
}
input:-webkit-autofill {
-webkit-box-shadow: 0 0 0px 1000px white inset !important;
box-shadow: 0 0 0px 1000px white inset !important;
-webkit-text-fill-color: #000 !important;
}
.auth-body {
background: url('auth.avif') no-repeat center center/cover;
display: flex;
flex-direction: column;
min-height: 100vh;
}
/* Navbar */
.navbar {
background-color: #0a192f;
color: white;
padding: 12px 30px;
display: flex;
justify-content: space-between;
align-items: center;
}
.navbar .logo {
font-size: 1.4rem;
font-weight: bold;
}
.nav-links {
list-style: none;
display: flex;
gap: 20px;
}
.nav-links a {
color: white;
text-decoration: none;
font-size: 1rem;
}
.nav-links a:hover {
text-decoration: underline;
}
/* Auth container */
.auth-container {
background-color: #e6f0fa;
max-width: 420px;
margin: 50px auto;
padding: 30px 40px;
border-radius: 12px;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
border: 1px solid #cfdbe6;
}
.auth-container h2 {
text-align: center;
margin-bottom: 20px;
color: #0a192f;
}
.auth-container form {
display: flex;
flex-direction: column;
}
.auth-container input {
padding: 12px;
border: 1px solid #ccc;
border-radius: 8px;
font-size: 1rem;
}
.auth-container button {
background-color: #0074cc;
color: white;
padding: 12px;
border: none;
border-radius: 20px;
cursor: pointer;
font-size: 1rem;
align-self: center; /* Center inside form */
width: fit-content; /* Makes it auto-fit content */
min-width: 140px;
transition: all 0.3s ease;
box-shadow: 0 4px 12px rgba(0, 116, 204, 0.3);
}
.auth-container button:hover {
background-color: #005fa3;
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(0, 95, 163, 0.4);
}
.auth-container p {
margin-top: 14px;
text-align: center;
font-size: 0.95rem;
}
.auth-container a {
color: #0074cc;
text-decoration: none;
}
.auth-container a:hover {
text-decoration: underline;
}
.input-group {
position: relative;
margin-bottom: 14px; /* Reduced gap */
}
.input-group input {
width: 100%;
padding: 12px 38px 12px 12px; /* enough space for icon */
border: 1px solid #ccc;
border-radius: 8px;
font-size: 1rem;
background-color: white;
color: #333;
box-sizing: border-box;
}
.input-group input:focus {
outline: none;
border-color: #253146;
}
.toggle-password {
position: absolute;
top: 50%;
right: 12px;
transform: translateY(-50%);
cursor: pointer;
color: #222;
font-size: 18px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
}
.toggle-password:hover {
color: #0a192f;
}
.input-group {
position: relative;
margin-bottom: 1.5rem;
}
.input-group .icon {
position: absolute;
top: 50%;
left: 12px;
transform: translateY(-50%);
color: #222; /* darker now */
}
.input-group input {
width: 100%;
padding: 10px 10px 10px 40px; /* left padding for icon */
border-radius: 8px;
border: 1px solid #ccc;
font-size: 1rem;
}
.input-group .toggle-password {
position: absolute;
top: 50%;
right: 12px;
transform: translateY(-50%);
cursor: pointer;
color: #222;
}