index.css 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. .login-container {
  2. display: flex;
  3. width: 100%;
  4. height: 100vh;
  5. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  6. overflow: hidden;
  7. }
  8. /* 左侧装饰区域 */
  9. .login-left {
  10. flex: 1;
  11. display: flex;
  12. align-items: center;
  13. justify-content: center;
  14. background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  15. position: relative;
  16. overflow: hidden;
  17. }
  18. .login-left::before {
  19. content: '';
  20. position: absolute;
  21. width: 600px;
  22. height: 600px;
  23. background: rgba(255, 255, 255, 0.05);
  24. border-radius: 50%;
  25. top: -100px;
  26. left: -100px;
  27. }
  28. .login-left::after {
  29. content: '';
  30. position: absolute;
  31. width: 400px;
  32. height: 400px;
  33. background: rgba(255, 255, 255, 0.08);
  34. border-radius: 50%;
  35. bottom: -100px;
  36. right: -50px;
  37. }
  38. .login-left-content {
  39. text-align: center;
  40. color: white;
  41. z-index: 1;
  42. padding: 40px;
  43. }
  44. .login-icon {
  45. font-size: 80px;
  46. color: white;
  47. margin-bottom: 24px;
  48. display: block;
  49. }
  50. .login-title {
  51. font-size: 36px;
  52. font-weight: 700;
  53. margin-bottom: 16px;
  54. letter-spacing: 2px;
  55. }
  56. .login-subtitle {
  57. font-size: 16px;
  58. opacity: 0.9;
  59. margin-bottom: 48px;
  60. font-weight: 300;
  61. letter-spacing: 1px;
  62. }
  63. .login-features {
  64. display: flex;
  65. gap: 32px;
  66. justify-content: center;
  67. flex-wrap: wrap;
  68. }
  69. .feature-item {
  70. display: flex;
  71. flex-direction: column;
  72. align-items: center;
  73. gap: 12px;
  74. }
  75. .feature-icon {
  76. width: 80px;
  77. height: 80px;
  78. background: rgba(255, 255, 255, 0.2);
  79. border-radius: 20px;
  80. display: flex;
  81. align-items: center;
  82. justify-content: center;
  83. font-size: 36px;
  84. backdrop-filter: blur(10px);
  85. transition: all 0.3s ease;
  86. }
  87. .feature-item:hover .feature-icon {
  88. background: rgba(255, 255, 255, 0.3);
  89. transform: translateY(-5px);
  90. }
  91. .feature-text {
  92. font-size: 14px;
  93. color: white;
  94. font-weight: 500;
  95. }
  96. /* 右侧登录表单 */
  97. .login-right {
  98. width: 480px;
  99. display: flex;
  100. align-items: center;
  101. justify-content: center;
  102. background: white;
  103. padding: 40px;
  104. }
  105. .login-card {
  106. width: 100%;
  107. max-width: 400px;
  108. box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  109. border-radius: 8px;
  110. }
  111. .login-card-title {
  112. text-align: center;
  113. font-size: 28px;
  114. font-weight: 600;
  115. color: #1890ff;
  116. margin-bottom: 8px;
  117. }
  118. .login-card-subtitle {
  119. text-align: center;
  120. color: #666;
  121. font-size: 14px;
  122. margin-bottom: 32px;
  123. }
  124. .login-forgot {
  125. float: right;
  126. color: #1890ff;
  127. }
  128. .login-forgot:hover {
  129. color: #40a9ff;
  130. }
  131. .login-footer {
  132. text-align: center;
  133. margin-top: 24px;
  134. color: #999;
  135. font-size: 12px;
  136. }
  137. .login-footer p {
  138. margin: 0;
  139. }
  140. /* 选择页面样式 */
  141. .welcome-section {
  142. text-align: center;
  143. color: white;
  144. }
  145. .user-avatar {
  146. background: rgba(255, 255, 255, 0.2);
  147. border: 3px solid rgba(255, 255, 255, 0.3);
  148. margin-bottom: 24px;
  149. }
  150. .welcome-title {
  151. font-size: 28px;
  152. font-weight: 600;
  153. margin-bottom: 8px;
  154. }
  155. .welcome-name {
  156. font-size: 24px;
  157. font-weight: 500;
  158. margin-bottom: 16px;
  159. opacity: 0.95;
  160. }
  161. .welcome-subtitle {
  162. font-size: 16px;
  163. opacity: 0.8;
  164. font-weight: 300;
  165. }
  166. .select-loading {
  167. flex: 1;
  168. display: flex;
  169. align-items: center;
  170. justify-content: center;
  171. background: white;
  172. }
  173. .select-card {
  174. width: 100%;
  175. max-width: 600px;
  176. box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  177. border-radius: 8px;
  178. min-height: 500px;
  179. display: flex;
  180. flex-direction: column;
  181. }
  182. .select-header {
  183. display: flex;
  184. align-items: center;
  185. margin-bottom: 24px;
  186. position: relative;
  187. }
  188. .back-btn {
  189. position: absolute;
  190. left: 0;
  191. padding: 0;
  192. }
  193. .select-title {
  194. flex: 1;
  195. text-align: center;
  196. font-size: 24px;
  197. font-weight: 600;
  198. color: #1890ff;
  199. margin: 0;
  200. }
  201. .search-section {
  202. margin-bottom: 20px;
  203. }
  204. .permissions-list {
  205. flex: 1;
  206. overflow-y: auto;
  207. max-height: 400px;
  208. margin-bottom: 20px;
  209. }
  210. .permission-card {
  211. border: 2px solid #f0f0f0;
  212. border-radius: 8px;
  213. transition: all 0.3s ease;
  214. }
  215. .permission-card:hover {
  216. border-color: #1890ff;
  217. box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
  218. }
  219. .permission-card.selected {
  220. border-color: #1890ff;
  221. background: #e6f7ff;
  222. box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
  223. }
  224. .permission-content {
  225. display: flex;
  226. align-items: center;
  227. gap: 16px;
  228. }
  229. .permission-icon {
  230. width: 48px;
  231. height: 48px;
  232. background: #e6f7ff;
  233. border-radius: 12px;
  234. display: flex;
  235. align-items: center;
  236. justify-content: center;
  237. font-size: 24px;
  238. color: #1890ff;
  239. }
  240. .permission-info {
  241. flex: 1;
  242. }
  243. .hospital-name {
  244. font-size: 16px;
  245. font-weight: 600;
  246. color: #262626;
  247. margin-bottom: 4px;
  248. display: flex;
  249. align-items: center;
  250. gap: 8px;
  251. }
  252. .default-tag {
  253. font-size: 12px;
  254. padding: 0 6px;
  255. height: 20px;
  256. line-height: 18px;
  257. }
  258. .hospital-code {
  259. font-size: 12px;
  260. color: #8c8c8c;
  261. margin-bottom: 4px;
  262. }
  263. .group-name {
  264. font-size: 14px;
  265. color: #595959;
  266. display: flex;
  267. align-items: center;
  268. gap: 4px;
  269. }
  270. .empty-permissions {
  271. flex: 1;
  272. display: flex;
  273. flex-direction: column;
  274. justify-content: center;
  275. align-items: center;
  276. padding: 40px 0;
  277. }
  278. .select-footer {
  279. margin-top: auto;
  280. padding-top: 20px;
  281. border-top: 1px solid #f0f0f0;
  282. }
  283. /* 下拉框选择样式 */
  284. .select-section {
  285. margin: 24px 0;
  286. }
  287. .select-section .ant-select-selector {
  288. border-radius: 8px !important;
  289. }
  290. .select-option-content {
  291. display: flex;
  292. align-items: center;
  293. gap: 8px;
  294. padding: 4px 0;
  295. }
  296. .select-option-hosp {
  297. font-weight: 500;
  298. color: #262626;
  299. }
  300. .select-option-code {
  301. color: #8c8c8c;
  302. font-size: 12px;
  303. }
  304. .select-option-group {
  305. margin-left: auto;
  306. color: #1890ff;
  307. font-size: 13px;
  308. }
  309. .select-option-default {
  310. color: #52c41a;
  311. font-size: 12px;
  312. }
  313. /* 响应式设计 */
  314. @media (max-width: 1024px) {
  315. .login-left {
  316. flex: 0.6;
  317. }
  318. .login-right {
  319. width: 400px;
  320. }
  321. .login-title {
  322. font-size: 28px;
  323. }
  324. .login-icon {
  325. font-size: 60px;
  326. }
  327. .login-features {
  328. gap: 20px;
  329. }
  330. }
  331. @media (max-width: 768px) {
  332. .login-container {
  333. flex-direction: column;
  334. }
  335. .login-left {
  336. flex: none;
  337. padding: 40px 20px;
  338. }
  339. .login-right {
  340. width: 100%;
  341. padding: 20px;
  342. }
  343. .login-card {
  344. max-width: 100%;
  345. }
  346. .login-features {
  347. gap: 16px;
  348. }
  349. .feature-icon {
  350. width: 60px;
  351. height: 60px;
  352. font-size: 28px;
  353. }
  354. .login-title {
  355. font-size: 24px;
  356. }
  357. .login-subtitle {
  358. font-size: 14px;
  359. }
  360. }