Spaces:
Sleeping
Sleeping
Download frontend/src/styles/Auth.css from monumkp89/pixelcraft: direct link, hf CLI and curl.
- Browser
- Download file 8.91 kB
-
https://huggingface.co/spaces/monumkp89/pixelcraft/resolve/main/frontend/src/styles/Auth.css
- Command line
-
hf download hf://spaces/monumkp89/pixelcraft/frontend/src/styles/Auth.css
-
curl -L -o Auth.css https://huggingface.co/spaces/monumkp89/pixelcraft/resolve/main/frontend/src/styles/Auth.css
8.91 kB
| /* Authentication Pages */ | |
| .auth-container { | |
| min-height: 100vh; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 1.25rem; | |
| background: | |
| radial-gradient(circle at top left, rgba(255, 122, 89, 0.18), transparent 24%), | |
| radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.16), transparent 24%), | |
| linear-gradient(145deg, #102338 0%, #163250 44%, #1b4f6c 100%); | |
| } | |
| .auth-shell { | |
| width: 100%; | |
| max-width: 1180px; | |
| display: grid; | |
| grid-template-columns: 1fr; | |
| justify-items: center; | |
| align-items: center; | |
| gap: 1.35rem; | |
| } | |
| .auth-showcase, | |
| .auth-card { | |
| position: relative; | |
| overflow: hidden; | |
| border-radius: 30px; | |
| border: 1px solid rgba(255, 255, 255, 0.12); | |
| background: rgba(255, 255, 255, 0.92); | |
| box-shadow: 0 30px 70px rgba(7, 12, 24, 0.22); | |
| } | |
| .auth-showcase::before, | |
| .auth-card::before { | |
| content: ""; | |
| position: absolute; | |
| inset: 0; | |
| background: | |
| radial-gradient(circle at top right, rgba(255, 122, 89, 0.12), transparent 18%), | |
| radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.12), transparent 22%); | |
| pointer-events: none; | |
| } | |
| .auth-showcase { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1.2rem; | |
| padding: 1.7rem; | |
| background: | |
| radial-gradient(circle at top left, rgba(255, 241, 234, 0.95), transparent 42%), | |
| linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(246, 250, 255, 0.96) 100%); | |
| } | |
| .auth-showcase-copy, | |
| .auth-showcase-art, | |
| .auth-highlights, | |
| .auth-card-top, | |
| .auth-card form, | |
| .auth-link, | |
| .error-message, | |
| .success-message { | |
| position: relative; | |
| z-index: 1; | |
| } | |
| .auth-kicker, | |
| .auth-card-kicker { | |
| display: inline-flex; | |
| align-items: center; | |
| padding: 0.45rem 0.85rem; | |
| border-radius: 999px; | |
| margin-bottom: 0.8rem; | |
| background: rgba(255, 122, 89, 0.12); | |
| color: #ea5b2a; | |
| font-size: 0.78rem; | |
| font-weight: 800; | |
| letter-spacing: 0.14em; | |
| text-transform: uppercase; | |
| } | |
| .auth-showcase-copy h1 { | |
| max-width: 14ch; | |
| color: #102338; | |
| font-size: clamp(2.2rem, 4vw, 3.3rem); | |
| line-height: 0.98; | |
| } | |
| .auth-showcase-text { | |
| max-width: 56ch; | |
| margin-top: 0.8rem; | |
| color: #4b5d72; | |
| line-height: 1.75; | |
| } | |
| .auth-showcase-art { | |
| padding: 1rem; | |
| border-radius: 26px; | |
| background: rgba(255, 255, 255, 0.88); | |
| border: 1px solid rgba(18, 32, 51, 0.08); | |
| box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6); | |
| } | |
| .auth-hero-artwork { | |
| display: block; | |
| width: 100%; | |
| border-radius: 22px; | |
| box-shadow: 0 22px 44px rgba(18, 32, 51, 0.14); | |
| animation: authArtworkFloat 7s ease-in-out infinite; | |
| } | |
| .auth-highlights { | |
| display: grid; | |
| grid-template-columns: repeat(2, minmax(0, 1fr)); | |
| gap: 0.9rem; | |
| } | |
| .auth-highlight-card { | |
| padding: 1rem; | |
| border-radius: 22px; | |
| background: rgba(255, 255, 255, 0.86); | |
| border: 1px solid rgba(18, 32, 51, 0.08); | |
| } | |
| .auth-highlight-card strong { | |
| display: block; | |
| margin-bottom: 0.45rem; | |
| color: #102338; | |
| font-size: 1rem; | |
| } | |
| .auth-highlight-card span { | |
| color: #4b5d72; | |
| line-height: 1.6; | |
| font-size: 0.93rem; | |
| } | |
| .auth-card { | |
| width: 100%; | |
| max-width: 480px; | |
| padding: 1.8rem; | |
| justify-self: center; | |
| } | |
| .auth-card h1, | |
| .auth-card h2 { | |
| font-size: 2rem; | |
| margin-bottom: 0.35rem; | |
| color: #102338; | |
| } | |
| .auth-subtitle { | |
| color: #5b6d82; | |
| margin-bottom: 1.4rem; | |
| font-size: 0.97rem; | |
| line-height: 1.6; | |
| } | |
| .form-group { | |
| margin-bottom: 1.25rem; | |
| } | |
| .form-group label { | |
| display: block; | |
| margin-bottom: 0.5rem; | |
| font-weight: 700; | |
| color: #102338; | |
| } | |
| .form-group input, | |
| .form-group textarea { | |
| width: 100%; | |
| min-height: 52px; | |
| padding: 0.9rem 1rem; | |
| border: 1px solid rgba(18, 32, 51, 0.12); | |
| border-radius: 18px; | |
| font-size: 1rem; | |
| color: #102338; | |
| background: rgba(255, 255, 255, 0.94); | |
| transition: border-color 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease; | |
| } | |
| .form-group input:focus, | |
| .form-group textarea:focus { | |
| outline: none; | |
| border-color: rgba(255, 122, 89, 0.38); | |
| box-shadow: 0 0 0 5px rgba(255, 122, 89, 0.08); | |
| background: white; | |
| } | |
| .password-input-wrapper { | |
| position: relative; | |
| display: flex; | |
| align-items: center; | |
| } | |
| .password-input-wrapper input { | |
| padding-right: 3rem; | |
| } | |
| .password-toggle { | |
| position: absolute; | |
| right: 0.75rem; | |
| background: none; | |
| border: none; | |
| color: #5b6d82; | |
| cursor: pointer; | |
| padding: 0.25rem; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| transition: color 0.2s ease; | |
| } | |
| .password-toggle:hover { | |
| color: #102338; | |
| } | |
| .auth-action-row { | |
| display: grid; | |
| grid-template-columns: minmax(0, 1fr) auto; | |
| gap: 0.75rem; | |
| align-items: center; | |
| } | |
| .field-note { | |
| margin-top: 0.55rem; | |
| font-size: 0.83rem; | |
| color: #5b6d82; | |
| line-height: 1.55; | |
| } | |
| .form-group.checkbox { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.6rem; | |
| margin-bottom: 1rem; | |
| } | |
| .form-group.checkbox input { | |
| width: 18px; | |
| min-height: 18px; | |
| margin: 0; | |
| accent-color: #ff7a59; | |
| } | |
| .form-group.checkbox label { | |
| margin-bottom: 0; | |
| } | |
| .password-strength { | |
| margin-top: 0.65rem; | |
| } | |
| .strength-bar { | |
| height: 6px; | |
| border-radius: 999px; | |
| margin-bottom: 0.45rem; | |
| transition: width 0.24s ease; | |
| } | |
| .password-strength p { | |
| font-size: 0.85rem; | |
| font-weight: 700; | |
| } | |
| .auth-button, | |
| .secondary-auth-button, | |
| .text-link { | |
| position: relative; | |
| overflow: hidden; | |
| isolation: isolate; | |
| } | |
| .auth-button::before, | |
| .secondary-auth-button::before { | |
| content: ""; | |
| position: absolute; | |
| inset: 0; | |
| background: linear-gradient(115deg, transparent 16%, rgba(255, 255, 255, 0.34) 48%, transparent 82%); | |
| transform: translateX(-125%); | |
| transition: transform 0.55s ease; | |
| pointer-events: none; | |
| } | |
| .auth-button:hover::before, | |
| .secondary-auth-button:hover::before, | |
| .auth-button:focus-visible::before, | |
| .secondary-auth-button:focus-visible::before { | |
| transform: translateX(125%); | |
| } | |
| .auth-button { | |
| width: 100%; | |
| min-height: 54px; | |
| padding: 0.95rem 1rem; | |
| background: linear-gradient(135deg, #ff7a59 0%, #ffaf4d 100%); | |
| color: white; | |
| border: none; | |
| border-radius: 18px; | |
| font-size: 1rem; | |
| font-weight: 800; | |
| cursor: pointer; | |
| transition: box-shadow 0.24s ease, filter 0.24s ease, opacity 0.24s ease; | |
| margin-bottom: 1rem; | |
| box-shadow: 0 18px 30px rgba(255, 122, 89, 0.24); | |
| } | |
| .auth-button:hover:not(:disabled), | |
| .auth-button:focus-visible:not(:disabled) { | |
| filter: brightness(1.04); | |
| box-shadow: 0 22px 34px rgba(255, 122, 89, 0.3); | |
| } | |
| .auth-button:disabled { | |
| opacity: 0.6; | |
| cursor: not-allowed; | |
| box-shadow: none; | |
| } | |
| .secondary-auth-button { | |
| min-height: 52px; | |
| padding: 0.85rem 1rem; | |
| background: #102338; | |
| color: white; | |
| border: none; | |
| border-radius: 18px; | |
| font-size: 0.95rem; | |
| font-weight: 800; | |
| cursor: pointer; | |
| transition: box-shadow 0.24s ease, filter 0.24s ease, opacity 0.24s ease; | |
| white-space: nowrap; | |
| box-shadow: 0 14px 24px rgba(16, 35, 56, 0.18); | |
| } | |
| .secondary-auth-button:hover:not(:disabled), | |
| .secondary-auth-button:focus-visible:not(:disabled) { | |
| filter: brightness(1.05); | |
| box-shadow: 0 18px 28px rgba(16, 35, 56, 0.22); | |
| } | |
| .secondary-auth-button:disabled { | |
| opacity: 0.6; | |
| cursor: not-allowed; | |
| box-shadow: none; | |
| } | |
| .error-message, | |
| .success-message { | |
| padding: 0.9rem 1rem; | |
| border-radius: 16px; | |
| margin-bottom: 1rem; | |
| font-size: 0.92rem; | |
| line-height: 1.55; | |
| } | |
| .error-message { | |
| background: #fef2f2; | |
| border: 1px solid #fecaca; | |
| color: #dc2626; | |
| } | |
| .success-message { | |
| background: #ecfdf5; | |
| border: 1px solid #bbf7d0; | |
| color: #15803d; | |
| } | |
| .auth-footer-actions { | |
| display: flex; | |
| justify-content: flex-end; | |
| margin-top: -0.25rem; | |
| margin-bottom: 1rem; | |
| } | |
| .text-link { | |
| background: none; | |
| border: none; | |
| color: #ea5b2a; | |
| cursor: pointer; | |
| font-size: 0.92rem; | |
| font-weight: 800; | |
| padding: 0; | |
| text-decoration: none; | |
| } | |
| .text-link:hover, | |
| .text-link:focus-visible { | |
| color: #c94a1f; | |
| } | |
| .error-message { | |
| padding: 12px 16px; | |
| border-radius: 14px; | |
| background: rgba(239, 68, 68, 0.12); | |
| color: #ef4444; | |
| font-size: 0.9rem; | |
| font-weight: 600; | |
| margin-bottom: 1rem; | |
| border: 1px solid rgba(239, 68, 68, 0.2); | |
| } | |
| .error-message--alt { | |
| background: rgba(14, 165, 233, 0.12); | |
| color: #0ea5e9; | |
| border-color: rgba(14, 165, 233, 0.2); | |
| } | |
| .auth-link { | |
| text-align: center; | |
| color: #5b6d82; | |
| font-size: 0.95rem; | |
| } | |
| .auth-link a { | |
| color: #ea5b2a; | |
| text-decoration: none; | |
| font-weight: 800; | |
| } | |
| .auth-link a:hover, | |
| .auth-link a:focus-visible { | |
| color: #c94a1f; | |
| } | |
| @keyframes authArtworkFloat { | |
| 0%, | |
| 100% { | |
| transform: translateY(0); | |
| } | |
| 50% { | |
| transform: translateY(-8px); | |
| } | |
| } | |
| @media (max-width: 980px) { | |
| .auth-shell { | |
| grid-template-columns: 1fr; | |
| } | |
| .auth-card { | |
| max-width: none; | |
| justify-self: stretch; | |
| } | |
| } | |
| @media (max-width: 640px) { | |
| .auth-container { | |
| padding: 0.85rem; | |
| } | |
| .auth-showcase, | |
| .auth-card { | |
| padding: 1.2rem; | |
| border-radius: 24px; | |
| } | |
| .auth-showcase-copy h1 { | |
| max-width: none; | |
| font-size: 2rem; | |
| } | |
| .auth-highlights { | |
| grid-template-columns: 1fr; | |
| } | |
| .auth-action-row { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |