/* ============================================================ LOGIN PAGE — Two-column split layout Left: branding + knowledge network | Right: login form ============================================================ */ /* ── Outer wrapper ── */ .login-page { min-height: 100vh; display: flex; flex-direction: column; background-color: var(--background-color); color: var(--text-primary); font-family: var(--font-sans); overflow: hidden; position: relative; } /* ── Animated background layer ── */ .login-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; } .lg-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; } .lg-orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%); top: -10%; right: -8%; animation: lgOrb1 18s ease-in-out infinite; } .lg-orb-2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%); bottom: -8%; left: -6%; animation: lgOrb2 22s ease-in-out infinite; } .lg-orb-3 { width: 280px; height: 280px; background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%); top: 50%; left: 40%; animation: lgOrb3 26s ease-in-out infinite; } @keyframes lgOrb1 { 0%, 100% { transform: translate(0, 0) scale(1); } 40% { transform: translate(-35px, 45px) scale(1.08); } 70% { transform: translate(20px, -25px) scale(0.95); } } @keyframes lgOrb2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(45px, -35px) scale(1.06); } } @keyframes lgOrb3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-25px, 35px); } } .lg-grid-overlay { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.055) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 40%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 40%, transparent 100%); } /* ── Two-column shell ── */ .login-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; } /* ── LEFT PANEL ── */ .login-left { position: relative; display: flex; flex-direction: column; padding: 3rem; background: rgba(8, 8, 8, 0.4); border-right: 1px solid var(--border-color); } .login-left::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(99, 102, 241, 0.06) 0%, transparent 60%); pointer-events: none; } .login-left-content { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; } .login-left-center { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3.5rem; } .login-left-tagline { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 900; letter-spacing: -1.2px; line-height: 1.15; color: var(--text-primary); text-align: center; } .lg-gradient-text { background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3)); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: lgShimmer 5s linear infinite; } @keyframes lgShimmer { 0% { background-position: 0% center; } 100% { background-position: 200% center; } } /* ── Logo ── */ .lg-logo { display: flex; align-items: center; gap: 0.65rem; } .lg-logo-icon { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); display: flex; align-items: center; justify-content: center; box-shadow: var(--glow-sm); flex-shrink: 0; } .lg-logo-text { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.3px; color: var(--text-primary); } .lg-logo-text span { background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } /* ── Knowledge network (login variant) ── */ .lg-kn-scene { position: relative; width: min(420px, 80%); aspect-ratio: 1; flex-shrink: 0; } .lg-kn-lines { position: absolute; inset: 0; width: 100%; height: 100%; } .lg-kn-line { stroke: rgba(99, 102, 241, 0.15); stroke-width: 1; stroke-dasharray: 6 4; animation: lgLinePulse 4s ease-in-out infinite; } .lg-kn-line-1 { animation-delay: 0s; } .lg-kn-line-2 { animation-delay: 0.6s; } .lg-kn-line-3 { animation-delay: 1.2s; } .lg-kn-line-4 { animation-delay: 1.8s; } .lg-kn-line-5 { animation-delay: 0.3s; } .lg-kn-line-6 { animation-delay: 1.5s; } .lg-kn-line-x { stroke: rgba(168, 85, 247, 0.08); stroke-width: 0.75; stroke-dasharray: 4 6; animation-delay: 2s; } @keyframes lgLinePulse { 0%, 100% { stroke-opacity: 0.4; } 50% { stroke-opacity: 1; } } .lg-kn-hub { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 30px rgba(99, 102, 241, 0.4), 0 0 60px rgba(99, 102, 241, 0.15); animation: lgHubPulse 3s ease-in-out infinite; z-index: 2; } @keyframes lgHubPulse { 0%, 100% { box-shadow: 0 0 30px rgba(99,102,241,0.4), 0 0 60px rgba(99,102,241,0.15); } 50% { box-shadow: 0 0 40px rgba(99,102,241,0.6), 0 0 80px rgba(99,102,241,0.25); } } .lg-kn-node { position: absolute; width: 54px; height: 54px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); z-index: 1; } .lg-kn-node span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; color: var(--text-muted); text-transform: uppercase; } .lg-kn-node-1 { top: calc(80/400*100% - 27px); left: calc(85/400*100% - 27px); animation: lgNF1 6s ease-in-out infinite, lgNG1 8s ease-in-out infinite; } .lg-kn-node-2 { top: calc(95/400*100% - 27px); left: calc(330/400*100% - 27px); animation: lgNF2 7s ease-in-out infinite, lgNG2 9s ease-in-out infinite 1s; } .lg-kn-node-3 { top: calc(260/400*100% - 27px); left: calc(60/400*100% - 27px); animation: lgNF3 8s ease-in-out infinite, lgNG3 10s ease-in-out infinite 2s; } .lg-kn-node-4 { top: calc(310/400*100% - 27px); left: calc(320/400*100% - 27px); animation: lgNF4 7s ease-in-out infinite, lgNG1 9s ease-in-out infinite 3s; } .lg-kn-node-5 { top: calc(50/400*100% - 27px); left: calc(200/400*100% - 27px); animation: lgNF5 6.5s ease-in-out infinite, lgNG2 8s ease-in-out infinite 0.5s; } .lg-kn-node-6 { top: calc(340/400*100% - 27px); left: calc(110/400*100% - 27px); animation: lgNF6 7.5s ease-in-out infinite, lgNG3 9s ease-in-out infinite 1.5s; } @keyframes lgNF1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-4px,6px); } } @keyframes lgNF2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(5px,-4px); } } @keyframes lgNF3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-6px,-5px); } } @keyframes lgNF4 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(4px,5px); } } @keyframes lgNF5 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(5px,4px); } } @keyframes lgNF6 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-5px,3px); } } @keyframes lgNG1 { 0%,80%,100% { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); } 90% { border-color: rgba(99,102,241,0.5); background: rgba(99,102,241,0.08); } } @keyframes lgNG2 { 0%,80%,100% { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); } 90% { border-color: rgba(168,85,247,0.5); background: rgba(168,85,247,0.08); } } @keyframes lgNG3 { 0%,80%,100% { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); } 90% { border-color: rgba(6,182,212,0.5); background: rgba(6,182,212,0.08); } } .lg-kn-pulse { position: absolute; width: 8px; height: 8px; border-radius: 50%; z-index: 3; opacity: 0; } .lg-kn-pulse-1 { background: #818cf8; box-shadow: 0 0 8px rgba(99,102,241,0.8); animation: lgP1 4s ease-in-out infinite; } .lg-kn-pulse-2 { background: #c084fc; box-shadow: 0 0 8px rgba(168,85,247,0.8); animation: lgP2 5s ease-in-out infinite 1.5s; } .lg-kn-pulse-3 { background: #22d3ee; box-shadow: 0 0 8px rgba(6,182,212,0.8); animation: lgP3 4.5s ease-in-out infinite 3s; } @keyframes lgP1 { 0% { top: 20%; left: 21.25%; opacity: 0; } 10% { opacity: 1; } 50% { top: calc(50% - 4px); left: calc(50% - 4px); opacity: 1; } 60% { opacity: 0; } 100%{ opacity: 0; } } @keyframes lgP2 { 0% { top: 23.75%; left: 82.5%; opacity: 0; } 10% { opacity: 1; } 50% { top: calc(50% - 4px); left: calc(50% - 4px); opacity: 1; } 60% { opacity: 0; } 100%{ opacity: 0; } } @keyframes lgP3 { 0% { top: 65%; left: 15%; opacity: 0; } 10% { opacity: 1; } 50% { top: calc(50% - 4px); left: calc(50% - 4px); opacity: 1; } 60% { opacity: 0; } 100%{ opacity: 0; } } /* ── RIGHT PANEL — form ── */ .login-right { display: flex; align-items: center; justify-content: center; padding: 3rem 2rem; overflow-y: auto; } .login-form-container { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 1.5rem; } /* ── Header ── */ .lg-header { display: flex; flex-direction: column; gap: 0.35rem; } .lg-header-center { text-align: center; align-items: center; } .lg-title { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 900; letter-spacing: -1px; color: var(--text-primary); } .lg-subtitle { font-size: 0.9rem; color: var(--text-secondary); } /* ── Error banner ── */ .lg-error { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.75rem 1rem; border-radius: var(--radius-md, 10px); background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.3); color: #f87171; font-size: 0.85rem; line-height: 1.5; } .lg-error:focus { outline: none; } .lg-error > svg { flex-shrink: 0; margin-top: 2px; } .lg-error-body { display: flex; flex-direction: column; gap: 0.35rem; } .lg-error-link { font-size: 0.8rem; font-weight: 600; color: #fbbf24; transition: opacity 0.2s; } .lg-error-link:hover { opacity: 0.8; text-decoration: underline; } .lg-error-link:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; border-radius: 2px; } .lg-error-warn { background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.3); color: #fbbf24; } /* ── Inline field errors ── */ .lg-field-error { font-size: 0.78rem; color: #f87171; padding-left: 0.2rem; } .lg-input-invalid input { border-color: rgba(248, 113, 113, 0.6); } .lg-input-invalid input:focus { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15); background: rgba(248, 113, 113, 0.04); } /* ── Form ── */ .lg-form { display: flex; flex-direction: column; gap: 1.1rem; } .lg-field { display: flex; flex-direction: column; gap: 0.45rem; } .lg-field label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.2px; } /* ── Input wrapper ── */ .lg-input-wrap { position: relative; display: flex; align-items: center; } .lg-input-icon { position: absolute; left: 0.9rem; color: var(--text-muted); pointer-events: none; flex-shrink: 0; } .lg-input-wrap input { width: 100%; padding: 0.8rem 1rem 0.8rem 2.7rem; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-color); border-radius: var(--radius-md, 10px); font-size: 0.925rem; color: var(--text-primary); font-family: inherit; outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; } .lg-input-wrap input::placeholder { color: var(--text-muted); } .lg-input-wrap input:focus { border-color: var(--accent-1, #6366f1); background: rgba(99, 102, 241, 0.05); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); } .lg-input-wrap input:focus-visible { outline: none; border-color: var(--accent-1, #6366f1); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25); } /* ── Password toggle ── */ .lg-pw-field input { padding-right: 2.9rem; } .lg-pw-toggle { position: absolute; right: 0.75rem; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; background: transparent; border: none; color: var(--text-muted); cursor: pointer; flex-shrink: 0; transition: color 0.2s, background 0.2s; } .lg-pw-toggle:hover { color: var(--text-secondary); background: rgba(255, 255, 255, 0.06); } .lg-pw-toggle:focus-visible { outline: 2px solid var(--accent-1, #6366f1); outline-offset: 2px; } /* ── Options row ── */ .lg-options-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.1rem; } .lg-checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-secondary); cursor: pointer; user-select: none; } .lg-checkbox { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; } .lg-checkmark { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border-color); background: rgba(255, 255, 255, 0.04); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s, box-shadow 0.2s; position: relative; } .lg-checkmark::after { content: ''; width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); transform: scale(0); transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); } .lg-checkbox:checked + .lg-checkmark { border-color: var(--accent-1, #6366f1); background: rgba(99, 102, 241, 0.08); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); } .lg-checkbox:checked + .lg-checkmark::after { transform: scale(1); } .lg-checkbox:focus-visible + .lg-checkmark { outline: 2px solid var(--accent-1, #6366f1); outline-offset: 2px; } .lg-forgot-link { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); transition: color 0.2s; white-space: nowrap; text-decoration: none; } .lg-forgot-link:hover { color: var(--accent-1, #6366f1); } .lg-forgot-link:focus-visible { outline: 2px solid var(--accent-1, #6366f1); outline-offset: 2px; border-radius: 2px; } /* ── Submit button ── */ .lg-submit-btn { width: 100%; padding: 0.9rem; margin-top: 0.5rem; border-radius: var(--radius-md, 10px); font-size: 1rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent-1, #6366f1), var(--accent-2, #a855f7)); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.6rem; transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s; box-shadow: var(--glow-sm, 0 0 12px rgba(99, 102, 241, 0.45)); } .lg-submit-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--glow-md, 0 0 30px rgba(99, 102, 241, 0.35)); } .lg-submit-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; } .lg-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; } /* ── Spinner ── */ .lg-spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%; animation: lgSpin 0.7s linear infinite; flex-shrink: 0; } @keyframes lgSpin { to { transform: rotate(360deg); } } /* ── Footer link ── */ .lg-footer { text-align: center; font-size: 0.85rem; color: var(--text-secondary); } .lg-footer a { color: var(--accent-1, #6366f1); font-weight: 600; transition: opacity 0.2s; } .lg-footer a:hover { opacity: 0.8; text-decoration: underline; } .lg-footer a:focus-visible { outline: 2px solid var(--accent-1, #6366f1); outline-offset: 2px; border-radius: 2px; } /* ── Responsive ── */ /* Hide left panel, single-column form */ @media (max-width: 900px) { .login-inner { grid-template-columns: 1fr; } .login-left { display: none; } .login-right { min-height: 100vh; } } /* Short viewports — let card scroll */ @media (max-height: 580px) { .login-right { align-items: flex-start; padding-top: 1.5rem; padding-bottom: 1.5rem; } } /* Mobile */ @media (max-width: 480px) { .login-right { padding: 2rem 1.25rem; align-items: flex-start; padding-top: 3rem; } .login-form-container { max-width: 100%; } .lg-title { font-size: 1.65rem; } .lg-subtitle { font-size: 0.84rem; } .lg-error { font-size: 0.8rem; padding: 0.65rem 0.85rem; } .lg-input-wrap input { padding-top: 0.85rem; padding-bottom: 0.85rem; min-height: 44px; } .lg-pw-toggle { width: 36px; height: 36px; } .lg-submit-btn { min-height: 48px; } .lg-checkmark { width: 20px; height: 20px; } .lg-checkmark::after { width: 12px; height: 12px; } .lg-success-icon-wrap { width: 64px; height: 64px; } .lg-res-icon { width: 36px; height: 36px; } } /* Extra-small screens */ @media (max-width: 360px) { .login-right { padding: 1.5rem 1rem; padding-top: 2.5rem; } .lg-title { font-size: 1.45rem; } .lg-input-wrap input { font-size: 0.875rem; padding-left: 2.4rem; } .lg-pw-field input { padding-right: 2.7rem; } .lg-submit-btn { padding: 0.8rem; font-size: 0.925rem; } .lg-options-row { flex-direction: column; align-items: flex-start; gap: 0.6rem; } .lg-forgot-link { align-self: flex-end; } } /* ── Forgot password specific ── */ .lg-back-link { display: flex; align-items: center; justify-content: center; flex-direction: row; gap: 0.5rem; margin-top: 1rem; font-size: 0.88rem; font-weight: 600; color: var(--text-muted); text-decoration: none; transition: color 0.2s; } .lg-back-link:hover { color: var(--text-primary); } .lg-success-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; padding: 1rem 0; animation: lgFadeUp 0.5s ease-out; } @keyframes lgFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .lg-success-icon-wrap { width: 80px; height: 80px; border-radius: 50%; background: rgba(16, 185, 129, 0.1); display: flex; align-items: center; justify-content: center; color: #10b981; box-shadow: 0 0 20px rgba(16, 185, 129, 0.2); } .lg-success-text { font-size: 0.95rem; line-height: 1.6; color: var(--text-secondary); } .lg-success-text strong { color: var(--text-primary); } .lg-success-actions { width: 100%; }