Download src/static/css/auth.css from anaselamr/yaz: direct link, hf CLI and curl.
- Browser
- Download file 17.4 kB
-
https://huggingface.co/spaces/anaselamr/yaz/resolve/main/src/static/css/auth.css
- Command line
-
hf download hf://spaces/anaselamr/yaz/src/static/css/auth.css
-
curl -L -o auth.css https://huggingface.co/spaces/anaselamr/yaz/resolve/main/src/static/css/auth.css
17.4 kB
| /* ───────────────────────────────────────────────────────── | |
| * auth.css — YAZ Authentication Pages | |
| * Standalone CSS for login.html and register.html | |
| * (These pages do NOT extend shared/base.html) | |
| * ─────────────────────────────────────────────────────────── */ | |
| /* ── Design Tokens (matches platform core) ── */ | |
| :root { | |
| --bg: #fafbfc; | |
| --surface: #ffffff; | |
| --border: #e5e7eb; | |
| --border-strong: #d1d5db; | |
| --text: #1a1f2e; | |
| --text-muted: #5c6370; | |
| --text-light: #8b929f; | |
| --primary: #5c6bc0; | |
| --primary-hover: #4a5ab8; | |
| --primary-light: #eef0f9; | |
| --error: #dc6b6b; | |
| --error-bg: rgba(220, 107, 107, 0.08); | |
| /* Shadows — match platform tokens.css scale */ | |
| --shadow-sm: 0 1px 2px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.04); | |
| --shadow-md: 0 2px 6px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04); | |
| --shadow-lg: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04); | |
| /* Radii — aligned to platform (md=8px, lg=12px, xl=16px) */ | |
| --radius: 8px; | |
| --radius-lg: 12px; | |
| --radius-xl: 16px; | |
| --transition: 0.12s ease; | |
| /* Focus — matches platform --focus-glow */ | |
| --focus-glow: 0 0 0 3px rgba(92, 107, 192, 0.12); | |
| --success: #56a066; | |
| --success-bg: rgba(86, 160, 102, 0.08); | |
| } | |
| [data-theme="dark"] { | |
| --bg: #0c0f14; | |
| --surface: #141921; | |
| --border: #2a3140; | |
| --border-strong: #3d4553; | |
| --text: #eaeef4; | |
| --text-muted: #9ba4b2; | |
| --text-light: #6b7280; | |
| --primary: #8b9ad8; | |
| --primary-hover: #9aa7e1; | |
| --primary-light: #1c2235; | |
| --error: #f87171; | |
| --error-bg: rgba(248, 113, 113, 0.08); | |
| --shadow-sm: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15); | |
| --shadow-md: 0 2px 6px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.15); | |
| --shadow-lg: 0 4px 12px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2); | |
| --focus-glow: 0 0 0 3px rgba(139, 154, 216, 0.18); | |
| } | |
| /* ── Reset ── */ | |
| *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; } | |
| html { | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| -webkit-text-size-adjust: 100%; | |
| text-size-adjust: 100%; | |
| height: 100%; | |
| } | |
| body { | |
| font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; | |
| background: var(--bg); | |
| color: var(--text); | |
| min-height: 100vh; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 1.5rem; | |
| line-height: 1.5; | |
| transition: background var(--transition), color var(--transition); | |
| } | |
| /* ── Layout ── */ | |
| .auth-wrapper { | |
| width: 100%; | |
| max-width: 380px; | |
| } | |
| /* ── Card ── */ | |
| .auth-card { | |
| background: var(--surface); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius-lg); | |
| box-shadow: var(--shadow-lg); | |
| padding: 2rem 1.75rem 1.75rem; | |
| transition: background var(--transition), border-color var(--transition), box-shadow var(--transition); | |
| } | |
| /* ── Brand ── */ | |
| .auth-brand { | |
| text-align: center; | |
| margin-bottom: 1.75rem; | |
| } | |
| .auth-logo { | |
| width: 56px; | |
| height: 56px; | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| margin-bottom: 0.875rem; | |
| border-radius: 14px; | |
| overflow: hidden; | |
| } | |
| .auth-logo img { | |
| width: 56px; | |
| height: 56px; | |
| display: block; | |
| border-radius: 14px; | |
| } | |
| .auth-title { | |
| font-size: 1.25rem; | |
| font-weight: 600; | |
| color: var(--text); | |
| margin-bottom: 0.375rem; | |
| letter-spacing: -0.01em; | |
| } | |
| /* YAZ™ wordmark */ | |
| .auth-wordmark { | |
| display: inline-flex; | |
| align-items: baseline; | |
| margin-bottom: 0.25rem; | |
| } | |
| .auth-wordmark-text { | |
| font-size: 2.25rem; | |
| font-weight: 800; | |
| letter-spacing: 0.05em; | |
| background: linear-gradient(135deg, var(--primary) 0%, #3d4fa8 100%); | |
| -webkit-background-clip: text; | |
| background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| color: transparent; | |
| line-height: 1; | |
| } | |
| [data-theme="dark"] .auth-wordmark-text { | |
| background: linear-gradient(135deg, #c4cef0 0%, var(--primary) 100%); | |
| -webkit-background-clip: text; | |
| background-clip: text; | |
| } | |
| .auth-wordmark-tm { | |
| font-size: 0.6rem; | |
| font-weight: 600; | |
| letter-spacing: 0; | |
| color: var(--text-muted); | |
| margin-left: 2px; | |
| align-self: flex-start; | |
| margin-top: 5px; | |
| } | |
| .auth-subtitle { | |
| font-size: 0.8125rem; | |
| color: var(--text-muted); | |
| } | |
| /* ── Form ── */ | |
| .form-group { | |
| margin-bottom: 1.25rem; | |
| } | |
| .form-label { | |
| display: block; | |
| font-size: 0.8125rem; | |
| font-weight: 500; | |
| color: var(--text); | |
| margin-bottom: 0.375rem; | |
| } | |
| .form-input { | |
| width: 100%; | |
| height: 44px; | |
| padding: 0 0.875rem; | |
| background: var(--bg); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| color: var(--text); | |
| font-family: inherit; | |
| font-size: 1rem; | |
| transition: border-color var(--transition), box-shadow var(--transition); | |
| } | |
| .form-input::placeholder { | |
| color: var(--text-light); | |
| } | |
| .form-input:focus { | |
| outline: none; | |
| border-color: var(--primary); | |
| box-shadow: var(--focus-glow); | |
| } | |
| [data-theme="dark"] .form-input:focus { | |
| box-shadow: var(--focus-glow); | |
| } | |
| /* ── Button ── */ | |
| .btn-primary { | |
| width: 100%; | |
| height: 44px; | |
| background: var(--text); | |
| color: var(--bg); | |
| border: none; | |
| border-radius: var(--radius); | |
| font-family: inherit; | |
| font-size: 0.9375rem; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: opacity var(--transition), transform var(--transition); | |
| margin-top: 0.5rem; | |
| letter-spacing: 0.01em; | |
| } | |
| .btn-primary:hover { | |
| opacity: 0.88; | |
| } | |
| .btn-primary:active { | |
| opacity: 0.75; | |
| } | |
| .btn-primary:disabled { | |
| opacity: 0.5; | |
| cursor: not-allowed; | |
| } | |
| /* ── Error ── */ | |
| .alert-error { | |
| background: var(--error-bg); | |
| border: 1px solid rgba(220, 107, 107, 0.18); | |
| color: var(--error); | |
| padding: 0.75rem 1rem; | |
| border-radius: var(--radius); | |
| font-size: 0.875rem; | |
| margin-bottom: 1.25rem; | |
| line-height: 1.4; | |
| } | |
| /* ── Footer ── */ | |
| .auth-footer { | |
| text-align: center; | |
| margin-top: 1.5rem; | |
| font-size: 0.8125rem; | |
| color: var(--text-muted); | |
| } | |
| .auth-footer a { | |
| color: var(--primary); | |
| text-decoration: none; | |
| font-weight: 500; | |
| } | |
| .auth-footer a:hover { | |
| text-decoration: underline; | |
| } | |
| /* ── Divider ── */ | |
| .auth-divider { | |
| height: 1px; | |
| background: var(--border); | |
| margin: 1.5rem 0; | |
| } | |
| /* ── Theme Toggle ── */ | |
| .theme-toggle { | |
| position: fixed; | |
| top: 1.25rem; | |
| right: 1.25rem; | |
| width: 40px; | |
| height: 40px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| background: var(--surface); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| cursor: pointer; | |
| color: var(--text-muted); | |
| transition: color var(--transition), border-color var(--transition), background var(--transition); | |
| } | |
| .theme-toggle:hover { | |
| color: var(--text); | |
| border-color: var(--border-strong); | |
| } | |
| .theme-toggle svg { | |
| width: 16px; | |
| height: 16px; | |
| } | |
| /* ── Trademark sup ── */ | |
| sup.tm { | |
| font-size: 0.55em; | |
| vertical-align: super; | |
| line-height: 0; | |
| letter-spacing: 0; | |
| color: inherit; | |
| opacity: 0.7; | |
| } | |
| /* ── Platform mark ── */ | |
| .platform-mark { | |
| text-align: center; | |
| margin-top: 1.75rem; | |
| } | |
| .platform-copyright { | |
| font-size: 0.6875rem; | |
| color: var(--text-light); | |
| letter-spacing: 0.02em; | |
| margin-bottom: 0.4rem; | |
| } | |
| .trademark-note { | |
| font-size: 0.625rem; | |
| color: var(--text-light); | |
| opacity: 0.72; | |
| letter-spacing: 0.01em; | |
| line-height: 1.5; | |
| max-width: 320px; | |
| margin: 0 auto; | |
| } | |
| /* ── Responsive ── */ | |
| @media (max-width: 480px) { | |
| body { padding: 1rem; align-items: flex-start; padding-top: 3rem; } | |
| .auth-card { padding: 1.5rem 1.25rem; } | |
| .form-input, .btn-primary, .btn-guest { height: 48px; font-size: 1rem; } | |
| } | |
| /* ── Focus visible ── */ | |
| *:focus { outline: none; } | |
| *:focus-visible { | |
| outline: 2px solid var(--primary); | |
| outline-offset: 2px; | |
| } | |
| /* ── Guest button ── */ | |
| .btn-guest { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 0.5rem; | |
| width: 100%; | |
| height: 44px; | |
| background: none; | |
| border: 1.5px dashed var(--border-strong); | |
| border-radius: var(--radius); | |
| color: var(--text-muted); | |
| font-family: inherit; | |
| font-size: 0.9375rem; | |
| font-weight: 500; | |
| cursor: pointer; | |
| text-decoration: none; | |
| transition: border-color var(--transition), color var(--transition), background var(--transition); | |
| margin-bottom: 1.25rem; | |
| } | |
| .btn-guest:hover { | |
| border-color: var(--primary); | |
| color: var(--primary); | |
| background: var(--primary-light); | |
| border-style: solid; | |
| } | |
| /* ── Social buttons ── */ | |
| .social-row { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr 1fr; | |
| gap: 0.5rem; | |
| margin-bottom: 1.25rem; | |
| } | |
| .btn-social { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 0.375rem; | |
| height: 44px; | |
| border-radius: var(--radius); | |
| font-family: inherit; | |
| font-size: 0.875rem; | |
| font-weight: 500; | |
| cursor: pointer; | |
| text-decoration: none; | |
| border: 1px solid var(--border); | |
| background: var(--surface); | |
| color: var(--text); | |
| transition: border-color var(--transition), box-shadow var(--transition), background var(--transition); | |
| white-space: nowrap; | |
| overflow: hidden; | |
| } | |
| .btn-social:hover { | |
| border-color: var(--border-strong); | |
| box-shadow: var(--shadow-sm); | |
| } | |
| .btn-social svg { flex-shrink: 0; } | |
| .btn-social-label { display: none; } | |
| @media (min-width: 360px) { .btn-social-label { display: inline; } } | |
| /* ── Divider with text ── */ | |
| .divider-or { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| margin: 1.25rem 0; | |
| color: var(--text-light); | |
| font-size: 0.75rem; | |
| } | |
| .divider-or::before, .divider-or::after { | |
| content: ''; | |
| flex: 1; | |
| height: 1px; | |
| background: var(--border); | |
| } | |
| /* ── Phone OTP section ── */ | |
| .phone-section { | |
| background: var(--bg); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| padding: 1rem; | |
| margin-bottom: 1.25rem; | |
| } | |
| .phone-section-title { | |
| font-size: 0.8125rem; | |
| font-weight: 600; | |
| color: var(--text); | |
| margin-bottom: 0.75rem; | |
| } | |
| .phone-row { | |
| display: flex; | |
| gap: 0.5rem; | |
| } | |
| .btn-sm { | |
| padding: 0 1rem; | |
| height: 44px; | |
| border-radius: var(--radius); | |
| border: none; | |
| background: var(--text); | |
| color: var(--bg); | |
| font-family: inherit; | |
| font-size: 0.9375rem; | |
| font-weight: 500; | |
| cursor: pointer; | |
| white-space: nowrap; | |
| transition: opacity var(--transition); | |
| } | |
| .btn-sm:hover { opacity: 0.85; } | |
| .btn-sm:disabled { opacity: 0.45; cursor: not-allowed; } | |
| .otp-hint { | |
| margin-top: 0.5rem; | |
| font-size: 0.75rem; | |
| color: var(--text-muted); | |
| } | |
| .provider-badge { | |
| display: inline-block; | |
| font-size: 0.6875rem; | |
| padding: 1px 6px; | |
| border-radius: 3px; | |
| background: #fef3c7; | |
| color: #92400e; | |
| margin-left: 4px; | |
| font-weight: 600; | |
| vertical-align: middle; | |
| } | |
| /* ── Touch: remove 300 ms tap delay on mobile ── */ | |
| button, a, [role="button"] { touch-action: manipulation; } | |
| /* ── CSS-driven theme icon toggle (no JS needed) ── */ | |
| #theme-icon-sun { display: none; } | |
| #theme-icon-moon { display: block; } | |
| [data-theme="dark"] #theme-icon-sun { display: block; } | |
| [data-theme="dark"] #theme-icon-moon { display: none; } | |
| /* ── Reduced motion: respect OS accessibility setting ── */ | |
| @media (prefers-reduced-motion: reduce) { | |
| *, *::before, *::after { | |
| transition-duration: 0.01ms ; | |
| animation-duration: 0.01ms ; | |
| } | |
| } | |
| /* ── Register-specific patterns ─────────────── */ | |
| .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; } | |
| .form-select { | |
| width: 100%; | |
| height: 42px; | |
| padding: 0 0.875rem; | |
| background: var(--bg); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| color: var(--text); | |
| font-family: inherit; | |
| font-size: 0.875rem; | |
| cursor: pointer; | |
| appearance: none; | |
| background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); | |
| background-repeat: no-repeat; | |
| background-position: right 0.75rem center; | |
| transition: border-color var(--transition), box-shadow var(--transition); | |
| } | |
| .met { color: var(--success); } | |
| .pw-hint { | |
| font-size: 0.7375rem; | |
| color: var(--text-light); | |
| display: flex; | |
| align-items: center; | |
| gap: 0.3rem; | |
| transition: color var(--transition); | |
| } | |
| .pw-hints { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 0.25rem 0.75rem; | |
| margin-top: 0.5rem; | |
| } | |
| .pw-toggle { | |
| position: absolute; | |
| right: 0.75rem; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| background: none; | |
| border: none; | |
| cursor: pointer; | |
| color: var(--text-light); | |
| display: flex; | |
| align-items: center; | |
| padding: 0; | |
| transition: color var(--transition); | |
| } | |
| .pw-wrapper { position: relative; } | |