login-base.css (8150B)
1 :root { 2 font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; 3 --realm-primary: var(--accent, #25A); 4 --auth-surface: #fff; 5 } 6 7 *, 8 *::before, 9 *::after { 10 box-sizing: border-box; 11 } 12 13 html { 14 -webkit-text-size-adjust: 100%; 15 text-size-adjust: 100%; 16 } 17 18 html, 19 body { 20 margin: 0; 21 padding: 0; 22 } 23 24 .auth-page { 25 display: grid; 26 place-items: center; 27 min-height: 100vh; 28 min-height: 100svh; 29 padding: env(safe-area-inset-top) env(safe-area-inset-right) 30 calc(1rem + env(safe-area-inset-bottom)) env(safe-area-inset-left); 31 background: var(--auth-surface); 32 } 33 34 .auth-card { 35 width: min(calc(100% - 2rem), 24rem); 36 padding: 2rem; 37 background: var(--auth-surface); 38 border-radius: 0; 39 } 40 41 .auth-card h1 { 42 margin: 0 0 1.5rem; 43 font-size: 1.5rem; 44 font-weight: 400; 45 } 46 47 .auth-realm { 48 margin: 0 0 0.375rem; 49 color: var(--muted); 50 font-size: 0.75rem; 51 font-weight: 600; 52 letter-spacing: 0.08em; 53 text-transform: uppercase; 54 } 55 56 .auth-notice { 57 margin: 0 0 1rem; 58 padding: 0.75rem; 59 background: var(--row); 60 color: var(--text); 61 font-size: 0.875rem; 62 line-height: 1.5; 63 } 64 65 .auth-field { 66 position: relative; 67 padding-top: 1rem; 68 } 69 70 .auth-input { 71 width: 100%; 72 padding: 0.5rem 0; 73 border: 0; 74 border-bottom: 1pt solid rgba(0, 0, 0, 0.42); 75 border-radius: 0; 76 background: transparent; 77 color: inherit; 78 font: inherit; 79 font-size: 1rem; 80 line-height: 1.5; 81 outline: none; 82 } 83 84 .auth-input:focus { 85 border-bottom-color: var(--realm-primary); 86 } 87 88 .auth-field label { 89 position: absolute; 90 top: 1.5em; 91 left: 0; 92 font-size: 1rem; 93 line-height: 1.5; 94 color: rgba(0, 0, 0, 0.6); 95 pointer-events: none; 96 transform-origin: left top; 97 transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease, opacity 0.15s ease; 98 } 99 100 .auth-input:focus + label, 101 .auth-input:not(:placeholder-shown) + label { 102 top: 0; 103 font-size: 0.85em; 104 font-weight: 500; 105 color: inherit; 106 opacity: 0.8; 107 } 108 109 .auth-identifier { 110 margin: 0 0 0.5rem; 111 color: rgba(0, 0, 0, 0.6); 112 font-size: 0.875rem; 113 } 114 115 .auth-note { 116 margin: 0 0 1rem; 117 color: rgba(0, 0, 0, 0.6); 118 font-size: 0.875rem; 119 line-height: 1.5; 120 } 121 122 .auth-choice { 123 display: flex; 124 align-items: center; 125 gap: 0.5rem; 126 min-height: 2.75rem; 127 margin-top: 1rem; 128 font-size: 0.875rem; 129 line-height: 1.5; 130 cursor: pointer; 131 touch-action: manipulation; 132 } 133 134 .auth-choice input { 135 width: 1rem; 136 height: 1rem; 137 accent-color: var(--realm-primary); 138 } 139 140 .auth-accounts { 141 display: grid; 142 gap: 0.5rem; 143 margin-top: 1rem; 144 } 145 146 .auth-account { 147 display: flex; 148 flex-direction: column; 149 align-items: flex-start; 150 justify-content: center; 151 gap: 0.125rem; 152 width: 100%; 153 min-height: 2.75rem; 154 padding: 0.75rem 0; 155 border: 0; 156 border-bottom: 1pt solid rgba(0, 0, 0, 0.16); 157 border-radius: 0; 158 background: none; 159 color: inherit; 160 font: inherit; 161 text-align: left; 162 cursor: pointer; 163 touch-action: manipulation; 164 } 165 166 .auth-account:hover, 167 .auth-account:focus-visible, 168 .auth-account:active { 169 border-bottom-color: var(--realm-primary); 170 } 171 172 .auth-account:disabled { 173 opacity: 0.5; 174 cursor: default; 175 } 176 177 .auth-account-name { 178 font-size: 1rem; 179 line-height: 1.5; 180 } 181 182 .auth-account-username { 183 color: rgba(0, 0, 0, 0.6); 184 font-size: 0.875rem; 185 line-height: 1.5; 186 } 187 188 .auth-error { 189 margin: 1rem 0 0; 190 color: #d93025; 191 font-size: 0.875rem; 192 line-height: 1.5; 193 } 194 195 .auth-actions { 196 display: grid; 197 gap: 1rem; 198 margin-top: 1.5rem; 199 } 200 201 .auth-actions > .auth-button, 202 .auth-actions > .auth-link { 203 width: 100%; 204 min-height: 2.75rem; 205 justify-content: center; 206 text-align: center; 207 } 208 209 .auth-button { 210 padding: 0.75rem 1.5rem; 211 border: 0; 212 border-radius: 0; 213 background: var(--realm-primary); 214 color: #fff; 215 font: inherit; 216 font-size: 1rem; 217 letter-spacing: 0.05em; 218 text-transform: uppercase; 219 cursor: pointer; 220 } 221 222 .auth-button:hover:not(:disabled) { 223 filter: brightness(1.12); 224 } 225 226 .auth-button:active:not(:disabled) { 227 filter: brightness(0.88); 228 } 229 230 .auth-button:disabled { 231 opacity: 0.5; 232 cursor: default; 233 } 234 235 .auth-link { 236 display: inline-flex; 237 align-items: center; 238 padding: 0.75rem 1rem; 239 border: 0; 240 background: none; 241 color: var(--realm-primary); 242 font: inherit; 243 font-size: 1rem; 244 cursor: pointer; 245 touch-action: manipulation; 246 } 247 248 .auth-card-consent { 249 width: min(calc(100% - 2rem), 28rem); 250 } 251 252 .auth-consent-account { 253 display: flex; 254 align-items: center; 255 gap: 0.75rem; 256 margin-top: 1.5rem; 257 padding: 0.75rem; 258 background: rgba(0, 0, 0, 0.05); 259 } 260 261 .auth-consent-account svg { 262 flex: none; 263 width: 1.5rem; 264 height: 1.5rem; 265 } 266 267 .auth-consent-account-body { 268 display: grid; 269 gap: 0.125rem; 270 min-width: 0; 271 } 272 273 .auth-consent-account-name { 274 font-size: 0.875rem; 275 font-weight: 500; 276 line-height: 1.4; 277 } 278 279 .auth-consent-account-meta { 280 overflow-wrap: anywhere; 281 color: rgba(0, 0, 0, 0.6); 282 font-size: 0.75rem; 283 line-height: 1.4; 284 } 285 286 .auth-consent-account .auth-link { 287 flex: none; 288 margin-left: auto; 289 font-size: 0.8125rem; 290 } 291 292 .auth-consent-title { 293 margin: 1.5rem 0 0; 294 font-size: 0.875rem; 295 font-weight: 500; 296 line-height: 1.5; 297 } 298 299 .auth-consent-scopes { 300 display: grid; 301 gap: 0.5rem; 302 margin: 0.75rem 0 0; 303 padding: 0; 304 list-style: none; 305 } 306 307 .auth-consent-scope { 308 display: flex; 309 align-items: flex-start; 310 gap: 0.5rem; 311 color: rgba(0, 0, 0, 0.6); 312 font-size: 0.875rem; 313 line-height: 1.5; 314 } 315 316 .auth-consent-scope svg { 317 flex: none; 318 width: 1rem; 319 height: 1rem; 320 margin-top: 0.125rem; 321 } 322 323 .auth-consent-footer { 324 margin: 1.5rem 0 0; 325 } 326 327 @media (prefers-color-scheme: dark) { 328 :root:not([data-theme]) { 329 --auth-surface: #222; 330 } 331 332 :root:not([data-theme]) .auth-card { 333 color: #fff; 334 } 335 336 :root:not([data-theme]) .auth-input { 337 border-bottom-color: rgba(255, 255, 255, 0.42); 338 color: #fff; 339 } 340 341 :root:not([data-theme]) .auth-field label, 342 :root:not([data-theme]) .auth-identifier, 343 :root:not([data-theme]) .auth-note, 344 :root:not([data-theme]) .auth-account-username, 345 :root:not([data-theme]) .auth-consent-account-meta, 346 :root:not([data-theme]) .auth-consent-scope { 347 color: rgba(255, 255, 255, 0.6); 348 } 349 350 :root:not([data-theme]) .auth-account { 351 border-bottom-color: rgba(255, 255, 255, 0.16); 352 } 353 354 :root:not([data-theme]) .auth-consent-account { 355 background: rgba(255, 255, 255, 0.08); 356 } 357 358 :root:not([data-theme]) .auth-error { 359 color: #f28b82; 360 } 361 } 362 363 @media (min-width: 35em) { 364 .auth-page { 365 background-color: #fff; 366 background-image: url('template://asset/hex-grid-light.svg'); 367 background-position: center; 368 background-repeat: no-repeat; 369 background-size: cover; 370 } 371 372 .auth-card { 373 box-shadow: 0 0.125em 0.25em #0008; 374 } 375 376 .auth-actions { 377 display: flex; 378 justify-content: flex-end; 379 align-items: center; 380 gap: 1.5rem; 381 } 382 383 .auth-actions > .auth-button, 384 .auth-actions > .auth-link { 385 width: auto; 386 } 387 } 388 389 @media (min-width: 35em) and (prefers-color-scheme: dark) { 390 :root:not([data-theme]) .auth-page { 391 background-color: #222; 392 background-image: url('template://asset/hex-grid-dark.svg'); 393 background-position: center; 394 background-repeat: no-repeat; 395 background-size: cover; 396 } 397 } 398 399 :root[data-theme="dark"] { 400 --auth-surface: #222; 401 } 402 403 :root[data-theme="dark"] .auth-card { 404 color: #fff; 405 } 406 407 :root[data-theme="dark"] .auth-input { 408 border-bottom-color: rgba(255, 255, 255, 0.42); 409 color: #fff; 410 } 411 412 :root[data-theme="dark"] .auth-field label, 413 :root[data-theme="dark"] .auth-identifier, 414 :root[data-theme="dark"] .auth-note, 415 :root[data-theme="dark"] .auth-account-username, 416 :root[data-theme="dark"] .auth-consent-account-meta, 417 :root[data-theme="dark"] .auth-consent-scope { 418 color: rgba(255, 255, 255, 0.6); 419 } 420 421 :root[data-theme="dark"] .auth-account { 422 border-bottom-color: rgba(255, 255, 255, 0.16); 423 } 424 425 :root[data-theme="dark"] .auth-consent-account { 426 background: rgba(255, 255, 255, 0.08); 427 } 428 429 :root[data-theme="dark"] .auth-error { 430 color: #f28b82; 431 } 432 433 @media (min-width: 35em) { 434 :root[data-theme="dark"] .auth-page { 435 background-color: #222; 436 background-image: url('template://asset/hex-grid-dark.svg'); 437 } 438 }