Spaces:
3SCError404
/
Paused

nexus / frontend /packages /shared /src /components /LoginCard.module.css
dushyantsingh0
backend stabilization
ee7da50
Raw History Blame Contribute Delete
7.77 kB
.loginPage {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
background: #ffffff;
overflow: hidden;
font-family: var(--font-main);
}
.loginPage::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: radial-gradient(rgba(226, 232, 240, 0.6) 1.5px, transparent 0);
background-size: 32px 32px;
z-index: 1;
pointer-events: none;
}
.card {
width: 96%;
max-width: 1000px;
height: 85vh;
max-height: 720px;
min-height: 580px;
background: #ffffff;
border-radius: 40px;
border: 1px solid var(--border-subtle);
box-shadow:
0 40px 100px -20px rgba(15, 23, 42, 0.12),
0 0 0 1px rgba(15, 23, 42, 0.04) inset;
display: flex;
overflow: hidden;
animation: cardEntrance 1.2s cubic-bezier(0.19, 1, 0.22, 1);
position: relative;
z-index: 10;
}
@keyframes cardEntrance {
from {
opacity: 0;
transform: translateY(40px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.visualPane {
flex: 1.1;
background: #ffffff;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
border-right: 1px solid var(--border-subtle);
}
.visualPane::before {
display: none;
}
.formPane {
flex: 1;
padding: clamp(32px, 6vh, 64px) clamp(24px, 4vw, 56px);
display: flex;
flex-direction: column;
justify-content: center;
background: #ffffff;
position: relative;
}
/* Neural Core Cinematic - Obsidian Accents */
.neuralCore {
position: relative;
width: 400px;
height: 400px;
display: flex;
align-items: center;
justify-content: center;
}
.svgCore {
position: absolute;
width: 320px;
height: 320px;
pointer-events: none;
}
.svgRing {
fill: none;
stroke-linecap: round;
transform-origin: center;
}
.svgMain {
stroke-width: 2.5;
animation: rotateRight 20s linear infinite;
}
.svgThin {
stroke-width: 1.2;
opacity: 0.4;
animation: rotateLeft 35s linear infinite;
}
.satellite {
position: absolute;
border-radius: 50%;
pointer-events: none;
z-index: 10;
}
.satBlue {
width: 8px;
height: 8px;
background: #6366f1;
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
animation: satelliteFloat 7s ease-in-out infinite alternate;
}
.satPurple {
width: 6px;
height: 6px;
background: #a855f7;
box-shadow: 0 3px 10px rgba(168, 85, 247, 0.25);
animation: satelliteFloat 9s ease-in-out infinite alternate-reverse;
}
@keyframes satelliteFloat {
0% { transform: translate(0, 0); opacity: 0.3; }
50% { transform: translate(20px, -30px); opacity: 0.7; }
100% { transform: translate(-10px, 10px); opacity: 0.4; }
}
.coreNode {
width: 140px;
height: 140px;
background: radial-gradient(circle, rgba(96, 165, 250, 0.3) 0%, transparent 70%);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
position: relative;
z-index: 5;
}
.coreNode::after {
content: '';
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
border: 1px solid var(--primary);
opacity: 0.3;
animation: pulseCoreSharp 3s ease-in-out infinite;
}
@keyframes pulseCoreSharp {
0% {
transform: scale(1);
opacity: 0.5;
}
100% {
transform: scale(1.6);
opacity: 0;
}
}
.avatarContainer {
width: 80px;
height: 80px;
background: #ffffff;
border: 1px solid var(--border-hi);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: var(--primary);
z-index: 10;
box-shadow: 0 10px 40px rgba(15, 23, 42, 0.1);
}
.particle {
position: absolute;
background: var(--primary);
border-radius: 50%;
opacity: 0.2;
pointer-events: none;
filter: blur(1px);
}
@keyframes rotateRight {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes rotateLeft {
from {
transform: rotate(360deg);
}
to {
transform: rotate(0deg);
}
}
@keyframes pulseCore {
0%,
100% {
transform: scale(1);
opacity: 0.1;
}
50% {
transform: scale(1.4);
opacity: 0.3;
}
}
/* Laptop / Medium Screen Optimization */
@media (max-width: 1024px) and (min-width: 769px) {
.card {
max-width: 900px;
height: 90vh;
border-radius: 20px;
}
.visualPane {
flex: 0.9;
}
.neuralCore {
transform: scale(0.7);
}
.formPane {
padding: 40px;
}
.brandLogo {
font-size: 32px;
}
.subtitle {
padding-bottom: 32px;
}
}
@media (max-width: 768px) {
.loginPage {
background: #ffffff;
overflow-y: auto;
display: block;
}
.card {
flex-direction: column;
width: 100%;
min-height: 100vh;
border-radius: 0;
border: none;
box-shadow: none;
}
.visualPane {
flex: 0 0 180px;
padding: 24px;
border-right: none;
border-bottom: 1px solid var(--border-subtle);
}
.formPane {
flex: 1;
padding: 32px 24px;
}
.neuralCore {
transform: scale(0.5);
height: 160px;
}
.avatarContainer {
width: 44px;
height: 44px;
}
}
.header {
text-align: center;
}
.brandLogo {
font-size: 40px;
font-weight: 950;
letter-spacing: 0.25em;
margin-bottom: 4px;
margin-right: -0.25em;
color: var(--text-main);
font-family: var(--font-header);
display: block;
text-align: center;
}
.subtitle {
color: var(--text-muted);
font-size: 9px;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 0.4em;
opacity: 0.7;
margin: 0;
padding-bottom: 48px;
}
.form {
display: flex;
flex-direction: column;
gap: 28px;
}
.submitBtn {
width: 100%;
margin-top: 24px;
height: 56px;
border-radius: 16px;
font-size: 14px;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 0.15em;
background: linear-gradient(135deg, var(--neural-accent-indigo) 0%, var(--neural-accent-violet) 100%) !important;
color: #fff !important;
border: none !important;
box-shadow: 0 20px 40px -10px rgba(109, 40, 217, 0.4);
cursor: pointer;
transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.submitBtn:hover {
transform: translateY(-3px);
filter: brightness(1.2) contrast(1.1);
box-shadow: 0 30px 60px -15px rgba(109, 40, 217, 0.6);
}
.submitBtn:active {
transform: translateY(1px);
}
.footer {
text-align: center;
font-size: 13px;
color: var(--text-muted);
font-weight: 500;
margin-top: 32px;
}
.footer .link {
color: var(--bg-obsidian);
font-weight: 800;
text-decoration: none;
cursor: pointer;
margin-left: 4px;
padding-bottom: 1px;
border-bottom: 2px solid rgba(15, 23, 42, 0.1);
transition: all 0.2s ease;
}
.footer .link:hover {
color: var(--primary);
border-bottom-color: var(--primary);
}
.partnerBranding {
margin-top: 32px;
text-align: center;
color: rgba(15, 23, 42, 0.4);
font-size: 10px;
font-weight: 950;
text-transform: uppercase;
letter-spacing: 0.4em;
display: flex;
align-items: center;
justify-content: center;
gap: 16px;
pointer-events: none;
}
.line {
height: 1px;
width: 32px;
background: var(--border-subtle);
}
.errorAlert {
background: rgba(239, 68, 68, 0.1);
border: 1px solid rgba(239, 68, 68, 0.2);
color: #fca5a5;
padding: 16px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
line-height: 1.5;
display: flex;
align-items: center;
gap: 12px;
animation: errorShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes errorShake {
10%,
90% {
transform: translateX(-1px);
}
20%,
80% {
transform: translateX(2px);
}
30%,
50%,
70% {
transform: translateX(-4px);
}
40%,
60% {
transform: translateX(4px);
}
}