:root { --navy: #0D1B2A; --navy-light: #1B2A4A; --blue: #1E5FBB; --blue-light: #E8F0FE; --green: #007A5E; --green-light: #E6F4F0; --red: #C8102E; --red-light: #FDE8EC; --gray-50: #F5F6FA; --gray-100: #E8EAF0; --gray-200: #D1D5DE; --gray-500: #7C8499; --gray-700: #4A5168; --gray-900: #1A1F2E; --white: #FFFFFF; --shadow-sm: 0 1px 2px rgba(13,27,42,0.06); --shadow-md: 0 2px 8px rgba(13,27,42,0.08); --shadow-lg: 0 4px 16px rgba(13,27,42,0.10); --radius: 8px; --radius-sm: 4px; --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1); } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif; background: var(--gray-50); color: var(--gray-900); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; } /* Auth page */ .auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); } .auth-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 420px; padding: 32px; } .auth-header { text-align: center; margin-bottom: 24px; } .auth-header h2 { font-size: 22px; font-weight: 600; color: var(--navy); margin-bottom: 6px; } .auth-header p { font-size: 13px; color: var(--gray-500); } .auth-tabs { display: flex; border-bottom: 1px solid var(--gray-100); margin-bottom: 24px; } .auth-tab { flex: 1; text-align: center; padding: 12px 0; cursor: pointer; color: var(--gray-500); font-weight: 500; position: relative; } .auth-tab.active { color: var(--blue); font-weight: 600; } .auth-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 25%; width: 50%; height: 2px; background: var(--blue); border-radius: 2px 2px 0 0; } .auth-form .form-item { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; } .auth-form label { font-size: 12px; color: var(--gray-500); font-weight: 500; text-transform: uppercase; letter-spacing: 0.4px; } .auth-form input { padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 14px; color: var(--gray-900); transition: border-color var(--transition); } .auth-form input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-light); } .code-input-group { display: flex; gap: 8px; } .code-input-group input { flex: 1; } .code-input-group button { white-space: nowrap; } .auth-hint { text-align: center; font-size: 12px; color: var(--gray-500); margin-top: 16px; } .auth-hint a { color: var(--blue); text-decoration: none; } button { padding: 8px 20px; border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; font-weight: 500; transition: all var(--transition); letter-spacing: 0.3px; } button:disabled { opacity: 0.6; cursor: not-allowed; } .btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 1px 3px rgba(30,95,187,0.3); } .btn-primary:hover:not(:disabled) { background: #1A52A3; box-shadow: 0 2px 6px rgba(30,95,187,0.4); } .btn-default { background: var(--white); border: 1px solid var(--gray-200); color: var(--gray-700); } .btn-default:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); background: var(--blue-light); } .error { color: var(--red); background: var(--red-light); border: 1px solid #F5A3B0; padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 13px; } /* Header user */ .header-user { display: flex; align-items: center; gap: 10px; } .header-user .avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #1A52A3); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--white); flex-shrink: 0; } .header-user .user-name { font-size: 13px; opacity: 0.9; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .header-user a { color: var(--white); font-size: 13px; text-decoration: none; opacity: 0.75; padding: 4px 10px; border-radius: 4px; transition: all var(--transition); } .header-user a:hover { opacity: 1; background: rgba(255,255,255,0.1); } /* Toast notification */ .toast { position: fixed; top: 20px; right: 20px; z-index: 9999; padding: 12px 20px; border-radius: 8px; font-size: 13px; font-weight: 500; box-shadow: 0 4px 20px rgba(13,27,42,0.15); animation: toastIn 0.3s ease-out; max-width: 360px; display: flex; align-items: center; gap: 8px; } .toast.success { background: var(--green); color: var(--white); } .toast.error { background: var(--red); color: var(--white); } .toast.info { background: var(--navy); color: var(--white); } @keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } } @keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(20px); } } /* Empty state */ .empty-state { text-align: center; padding: 48px 20px; color: var(--gray-500); } .empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; } .empty-state .empty-text { font-size: 14px; margin-bottom: 4px; } .empty-state .empty-hint { font-size: 12px; opacity: 0.7; } /* Table row animation */ @keyframes rowIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } } .table-wrap tbody tr { animation: rowIn 0.2s ease-out both; } .table-wrap tbody tr:nth-child(1) { animation-delay: 0s; } .table-wrap tbody tr:nth-child(2) { animation-delay: 0.02s; } .table-wrap tbody tr:nth-child(3) { animation-delay: 0.04s; } .table-wrap tbody tr:nth-child(4) { animation-delay: 0.06s; } .table-wrap tbody tr:nth-child(5) { animation-delay: 0.08s; } .table-wrap tbody tr:nth-child(6) { animation-delay: 0.10s; } .table-wrap tbody tr:nth-child(7) { animation-delay: 0.12s; } .table-wrap tbody tr:nth-child(8) { animation-delay: 0.14s; } .table-wrap tbody tr:nth-child(9) { animation-delay: 0.16s; } .table-wrap tbody tr:nth-child(10) { animation-delay: 0.18s; } /* Scrollbar styling */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: var(--gray-500); } /* Tab content transition */ .tab-content { animation: fadeIn 0.25s ease-out; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } /* Responsive */ @media (max-width: 768px) { .header-user .user-name { max-width: 80px; } .toast { top: 10px; right: 10px; left: 10px; max-width: none; } }