Spaces:
Paused

miracle / frontend /packages /shared /src /components /LoginCard.module.css
dushyantsingh0
backend stabilisation
9377380
Raw History Blame Contribute Delete
5.65 kB
/* Primary Redesign: Unified Light Theme (Consistently Modern) */
.loginPage {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
background: var(--bg-dark); /* Soft Slate Base from theme */
overflow-y: auto; /* Allow scrolling if card is taller than screen */
padding: 20px; /* Small safety buffer */
font-family: var(--font-main);
background-image:
radial-gradient(circle at 10% 20%, var(--primary-glow) 0%, transparent 40%),
radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.02) 0%, transparent 40%);
}
.card {
width: 90%;
max-width: 1100px;
height: 80vh;
min-height: 580px;
max-height: 760px;
background: var(--bg-card);
border-radius: 32px;
display: flex;
overflow: hidden;
box-shadow:
0 40px 80px -20px rgba(0, 0, 0, 0.08),
0 0 0 1px var(--glass-border);
animation: cardEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes cardEntrance {
from { opacity: 0; transform: scale(0.98) translateY(20px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
/* 1. HERO PANE (Light Nexus Transformation) */
.visualPane {
flex: 1.2;
background: var(--bg-dark);
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 64px;
border-right: 1px solid var(--border-subtle);
}
.visualPane::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background:
radial-gradient(circle at 100% 0%, var(--primary-glow) 0%, transparent 50%);
z-index: 1;
}
.heroContent {
position: relative;
z-index: 10;
}
.brandName {
font-size: 40px;
font-weight: 950;
letter-spacing: -0.04em;
color: var(--primary); /* Nexus Theme Primary */
margin-bottom: 32px;
}
.heroTitle {
font-size: 36px;
line-height: 1.1;
font-weight: 900;
color: var(--text-main);
margin-bottom: 24px;
max-width: 340px;
letter-spacing: -2px;
}
.heroSubtitle {
font-size: 16px;
color: var(--text-muted);
line-height: 1.6;
max-width: 280px;
}
.neuralCore {
position: absolute;
bottom: -40px;
left: -40px;
width: 400px;
height: 400px;
opacity: 0.15;
pointer-events: none;
background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
filter: blur(60px);
}
/* 2. FORM PANE (Clean Professional) */
.formPane {
flex: 1;
background: var(--bg-card);
padding: 64px;
display: flex;
flex-direction: column;
justify-content: flex-start;
position: relative;
overflow-y: auto;
scroll-behavior: smooth;
}
.header {
margin-bottom: 40px;
}
.header h2 {
font-size: 28px;
font-weight: 800;
color: var(--text-main);
margin-bottom: 8px;
}
.header p {
color: var(--text-muted);
font-size: 14px;
}
.form {
display: flex;
flex-direction: column;
gap: 24px;
}
.passwordFieldWrapper {
position: relative;
display: flex;
flex-direction: column;
}
.forgotLinkWrapper {
display: flex;
justify-content: flex-start;
margin-top: 4px;
margin-left: 2px;
z-index: 10;
}
.submitBtn {
width: 100%;
height: 56px;
background: #0f172a !important; /* Professional Dark for Light Theme */
border: none !important;
border-radius: 12px !important;
color: #fff !important;
font-weight: 700 !important;
font-size: 16px !important;
margin-top: 12px;
transition: all 0.2s ease !important;
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1) !important;
}
.submitBtn:hover {
background: var(--primary) !important;
transform: translateY(-1px);
box-shadow: 0 10px 20px -5px var(--primary-glow) !important;
}
.errorAlert {
background: #fef2f2;
border: 1px solid #fee2e2;
color: #991b1b;
padding: 14px;
border-radius: 12px;
font-size: 13px;
margin-bottom: 24px;
display: flex;
align-items: center;
gap: 10px;
}
.footer {
margin-top: 40px;
text-align: center;
font-size: 13px;
color: #64748b;
}
.link {
color: var(--primary);
font-weight: 700;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.05em;
cursor: pointer;
text-decoration: none;
opacity: 0.6;
transition: all 0.2s ease;
}
.link:hover {
opacity: 1;
text-decoration: underline;
}
.partnerBranding {
position: absolute;
bottom: 24px;
left: 0;
right: 0;
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
font-size: 10px;
font-weight: 800;
color: #cbd5e1;
text-transform: uppercase;
letter-spacing: 0.1em;
}
.line {
height: 1px;
width: 20px;
background: #e2e8f0;
}
@media (max-width: 900px) {
.card {
flex-direction: column;
height: auto;
max-height: none;
width: 100vw;
height: 100vh;
border-radius: 0;
}
.visualPane {
padding: 64px 32px;
height: auto;
min-height: 280px;
border-right: none;
border-bottom: 1px solid #e2e8f0;
justify-content: center;
align-items: center;
text-align: center;
}
.brandName { margin-bottom: 16px; font-size: 32px; }
.heroTitle {
max-width: none;
font-size: 32px;
margin-bottom: 16px;
margin-inline: auto;
}
.heroSubtitle {
display: block;
max-width: 100%;
margin-inline: auto;
font-size: 14px;
opacity: 0.8;
}
.formPane {
padding: 48px 32px 80px;
flex: 1;
justify-content: flex-start;
}
.partnerBranding {
position: relative;
bottom: 0;
margin-top: 48px;
}
}
@media (max-width: 480px) {
.visualPane {
padding: 48px 24px;
}
.heroTitle {
font-size: 26px;
}
.formPane {
padding: 32px 20px 60px;
}
}