File size: 5,130 Bytes
59d9f71 | 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 | body {
background: #EDF5E1;
color:#056b64;
min-height: 100vh;
padding-top: 100px;
font-family: 'Inter', sans-serif;
}
/* ================= HEADER ================= */
header {
margin: 80px auto 20px;
padding: 16px 22px;
width: 100%;
background: #f9f9f9 !important;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0, 4, 2, 0.507);
display: flex;
justify-content: space-between;
align-items: center;
}
.header-left {
display: flex;
align-items: center;
gap: 14px;
}
.header-left img {
width: 48px;
height: 48px;
border-radius: 50%;
}
.header-left .title {
font-size: 18px;
font-weight: 600;
}
.header-left .subtitle {
font-size: 12px;
color: #379683;
}
.header-right img {
width: 40px;
height: 40px;
border-radius: 50%;
}
/* ================= AUTH / LOGIN ================= */
.login-container,
.auth-container {
max-width: 700px;
margin: 30px auto;
background: rgba(255,255,255,0.75);
backdrop-filter: blur(14px);
padding: 28px 24px;
border-radius: 14px;
border: 1.5px solid rgba(5,56,107,0.25);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.498);
}
.login-container h2,
.auth-container h2 {
text-align: center;
margin-bottom: 22px;
}
.login-container label,
.auth-container label {
display: block;
margin-bottom: 6px;
font-size: 14px;
}
.login-container input,
.auth-container input,
.auth-container select {
width: 100%;
padding: 10px;
margin-bottom: 16px;
border-radius: 8px;
border: 1px solid rgba(5,56,107,0.35);
}
.login-container button,
.auth-container button {
width: 100%;
padding: 11px;
background: #056b64;
color: #EDF5E1;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
}
.login-container button:hover,
.auth-container button:hover {
background: #379683;
}
.login-container p,
.auth-container p {
text-align: center;
margin-top: 18px;
font-size: 13px;
}
.login-container a,
.auth-container a {
color: #056b64;
font-weight: 600;
text-decoration: none;
}
.login-container a:hover,
.auth-container a:hover {
text-decoration: underline;
}
/* ================= MOBILE ================= */
@media (max-width: 768px) {
header {
margin: 90px 12px 20px;
}
.auth-container,
.login-container {
margin: 20px 12px;
}
}
/* ===== FLOATING LABEL INPUT (REGISTER – SAME AS LOGIN) ===== */
.auth-container .input-group {
position: relative;
margin-bottom: 18px;
}
.auth-container .input {
width: 100%;
border: solid 1.5px #9e9e9e;
border-radius: 1rem;
background: none;
padding: 1rem;
font-size: 1rem;
color: #056b64;
transition: border 150ms cubic-bezier(0.4,0,0.2,1);
}
.auth-container .user-label {
position: absolute;
left: 15px;
top: 0;
color: #6b7280;
pointer-events: none;
transform: translateY(1rem);
transition: 150ms cubic-bezier(0.4,0,0.2,1);
background: rgba(255,255,255,0.9);
padding: 0 .25em;
}
.auth-container .input:focus,
.auth-container .input:valid {
outline: none;
border: 1.5px solid #056b64;
}
.auth-container .input:focus ~ .user-label,
.auth-container .input:valid ~ .user-label {
transform: translateY(-50%) scale(0.8);
color: #056b64;
}
/* Dropdown arrow fix */
.auth-container select.input {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2305386B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 16px center;
background-size: 14px;
}
/* Hide sections by default */
.hidden {
display: none;
}
/* ================= NEW PILL SELECTION STYLES ================= */
.pill-group {
display: flex;
flex-wrap: wrap;
gap: 10px;
padding-top: 5px;
}
/* Hide the actual ugly checkbox */
.pill-group input[type="checkbox"] {
display: none;
}
/* Style the label to look like a button/pill */
.pill-group label {
background-color: white;
border: 1.5px solid #05386B;
color: #05386B;
padding: 8px 16px;
border-radius: 20px;
font-size: 14px;
cursor: pointer;
transition: all 0.2s ease;
user-select: none; /* Prevents text highlighting */
font-weight: 500;
margin-bottom: 0; /* Reset generic label margin */
}
/* HOVER STATE */
.pill-group label:hover {
background-color: #EDF5E1;
}
/* CHECKED STATE (The Magic) */
.pill-group input[type="checkbox"]:checked + label {
background-color: #05386B;
color: #EDF5E1;
box-shadow: 0 4px 6px rgba(5, 56, 107, 0.3);
transform: translateY(-1px);
}
/* Static Label for Pill Container */
.static-label {
position: absolute;
left: 0;
top: -5px;
background: transparent;
color: #05386B;
font-weight: 600;
font-size: 0.9rem;
padding-left: 5px;
} |