const loginStyles = { wrap: { minHeight: '100vh', display: 'grid', gridTemplateColumns: '1fr 1fr', background: 'var(--bg)', }, left: { position: 'relative', padding: '48px', display: 'flex', flexDirection: 'column', justifyContent: 'space-between', background: 'radial-gradient(circle at 20% 30%, rgba(76,141,255,0.18), transparent 50%), radial-gradient(circle at 80% 80%, rgba(122,167,255,0.08), transparent 50%), var(--bg-2)', overflow: 'hidden', }, brand: { display: 'flex', alignItems: 'center', gap: '10px', fontSize: '15px', fontWeight: 600, letterSpacing: '-0.01em', zIndex: 2 }, brandBadge: { fontSize: '10px', fontWeight: 500, letterSpacing: '0.08em', textTransform: 'uppercase', color: 'var(--text-mute)', padding: '3px 8px', border: '1px solid var(--border)', borderRadius: '999px', marginLeft: '4px' }, heroBlock: { position: 'relative', zIndex: 2, maxWidth: '520px' }, eyebrow: { fontFamily: 'JetBrains Mono, monospace', fontSize: '12px', color: 'var(--accent-2)', letterSpacing: '0.14em', textTransform: 'uppercase', marginBottom: '22px', display: 'flex', alignItems: 'center', gap: '10px' }, eyebrowDot: { width: '6px', height: '6px', borderRadius: '50%', background: 'var(--accent)', boxShadow: '0 0 12px var(--accent)' }, heroTitle: { fontSize: '52px', lineHeight: 1.05, fontWeight: 700, letterSpacing: '-0.03em', margin: '0 0 20px 0', textWrap: 'pretty' }, heroTitleAccent: { background: 'linear-gradient(90deg, #7aa7ff, #b8d0ff)', WebkitBackgroundClip: 'text', WebkitTextFillColor: 'transparent', backgroundClip: 'text' }, heroText: { fontSize: '16px', lineHeight: 1.6, color: 'var(--text-dim)', margin: 0, maxWidth: '440px' }, footer: { display: 'flex', gap: '32px', fontSize: '12px', color: 'var(--text-mute)', fontFamily: 'JetBrains Mono, monospace', zIndex: 2 }, mockup: { position: 'absolute', right: '-80px', top: '50%', transform: 'translateY(-50%) rotate(-6deg)', width: '340px', height: '220px', borderRadius: '12px', background: 'linear-gradient(135deg, #1a2944, #0f1a2e)', border: '1px solid var(--border-strong)', boxShadow: '0 40px 80px rgba(0,0,0,0.5)', opacity: 0.35, zIndex: 1, display: 'flex', flexDirection: 'column', padding: '14px', gap: '8px' }, mockupRow: (w) => ({ height: '8px', width: w, background: 'var(--border-strong)', borderRadius: '4px' }), mockupBox: { flex: 1, background: 'var(--surface)', borderRadius: '8px', marginTop: '6px', border: '1px dashed var(--border-strong)' }, right: { display: 'flex', alignItems: 'center', justifyContent: 'center', padding: '48px' }, card: { width: '100%', maxWidth: '420px', position: 'relative' }, cardHead: { marginBottom: '40px' }, cardTitle: { fontSize: '28px', fontWeight: 600, letterSpacing: '-0.02em', margin: '0 0 10px 0' }, cardSub: { fontSize: '15px', color: 'var(--text-dim)', margin: 0, lineHeight: 1.5 }, gBtn: { width: '100%', padding: '14px 18px', borderRadius: '10px', background: '#fff', color: '#1f2937', fontWeight: 500, fontSize: '15px', display: 'flex', alignItems: 'center', justifyContent: 'center', gap: '12px', transition: 'transform 0.15s, box-shadow 0.2s', boxShadow: '0 2px 0 rgba(0,0,0,0.2)', cursor: 'pointer', border: 'none' }, errorBox: { marginTop: '16px', padding: '12px 16px', background: 'rgba(255,80,80,0.1)', border: '1px solid rgba(255,80,80,0.3)', borderRadius: '10px', fontSize: '13px', color: '#ff8080', lineHeight: 1.5 }, fine: { marginTop: '32px', fontSize: '12px', color: 'var(--text-mute)', lineHeight: 1.6, textAlign: 'center' }, fineLink: { color: 'var(--accent-2)', textDecoration: 'none' }, loading: { position: 'absolute', inset: 0, background: 'rgba(11,18,32,0.7)', backdropFilter: 'blur(4px)', display: 'flex', alignItems: 'center', justifyContent: 'center', zIndex: 10, borderRadius: '10px' }, spinner: { width: '40px', height: '40px', border: '3px solid var(--border)', borderTopColor: 'var(--accent)', borderRadius: '50%', animation: 'spin 0.8s linear infinite' }, }; function LoginScreen({ onLogin }) { const [loading, setLoading] = React.useState(false); const [error, setError] = React.useState(''); React.useEffect(() => { // Kiểm tra nếu OAuth callback trả lỗi const params = new URLSearchParams(window.location.search); if (params.get('error') === 'oauth_cancelled') { setError('Đăng nhập bị huỷ. Vui lòng thử lại.'); window.history.replaceState({}, '', '/'); } // Thử lấy user (đã login rồi → tự chuyển màn) API.getMe().then(u => { if (u) onLogin(u); }).catch(() => { }); }, []); const handleGoogle = () => { setLoading(true); setError(''); window.location.href = '/auth/google/login'; }; return (
Upload banner gốc, khoanh vùng cần thay thế, và đổi art hoặc text chỉ trong vài phút — không cần design tool.
Dùng tài khoản Gmail công ty để truy cập công cụ chỉnh sửa banner.
Chỉ tài khoản @sohagame.vn, @tech.admicro.vn, @admicro.vn được phép truy cập.
Liên hệ System Team nếu gặp sự cố.