Login.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. .login-container {
  2. min-height: 100vh;
  3. display: flex;
  4. align-items: center;
  5. justify-content: center;
  6. background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 50%, #f8faff 100%);
  7. position: relative;
  8. overflow: hidden;
  9. }
  10. .bg-decoration {
  11. position: absolute;
  12. border-radius: 50%;
  13. filter: blur(80px);
  14. opacity: 0.4;
  15. pointer-events: none;
  16. }
  17. .bg-decoration-1 {
  18. width: 400px;
  19. height: 400px;
  20. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  21. top: -100px;
  22. left: -100px;
  23. animation: float 8s ease-in-out infinite;
  24. }
  25. .bg-decoration-2 {
  26. width: 300px;
  27. height: 300px;
  28. background: linear-gradient(135deg, #00d4ff 0%, #667eea 100%);
  29. bottom: -50px;
  30. right: -50px;
  31. animation: float 6s ease-in-out infinite reverse;
  32. }
  33. .bg-decoration-3 {
  34. width: 250px;
  35. height: 250px;
  36. background: linear-gradient(135deg, #764ba2 0%, #00d4ff 100%);
  37. top: 50%;
  38. left: 50%;
  39. transform: translate(-50%, -50%);
  40. animation: pulse 4s ease-in-out infinite;
  41. }
  42. @keyframes float {
  43. 0%, 100% {
  44. transform: translate(0, 0);
  45. }
  46. 50% {
  47. transform: translate(30px, 30px);
  48. }
  49. }
  50. @keyframes pulse {
  51. 0%, 100% {
  52. opacity: 0.2;
  53. transform: translate(-50%, -50%) scale(1);
  54. }
  55. 50% {
  56. opacity: 0.4;
  57. transform: translate(-50%, -50%) scale(1.1);
  58. }
  59. }
  60. .login-box {
  61. background: rgba(255, 255, 255, 0.9);
  62. backdrop-filter: blur(20px);
  63. border-radius: 24px;
  64. padding: 48px;
  65. width: 100%;
  66. max-width: 440px;
  67. box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15), 0 8px 25px rgba(118, 75, 162, 0.1);
  68. border: 1px solid rgba(102, 126, 234, 0.2);
  69. position: relative;
  70. z-index: 1;
  71. }
  72. .login-header {
  73. text-align: center;
  74. margin-bottom: 40px;
  75. }
  76. .logo-icon {
  77. width: 64px;
  78. height: 64px;
  79. margin: 0 auto 20px;
  80. border-radius: 16px;
  81. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  82. display: flex;
  83. align-items: center;
  84. justify-content: center;
  85. font-size: 32px;
  86. box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  87. animation: glow-pulse 2.5s ease-in-out infinite;
  88. }
  89. .login-logo {
  90. width: 80px;
  91. height: 80px;
  92. margin: 0 auto 20px;
  93. display: block;
  94. object-fit: contain;
  95. filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4));
  96. }
  97. @keyframes glow-pulse {
  98. 0%, 100% {
  99. box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  100. }
  101. 50% {
  102. box-shadow: 0 8px 40px rgba(102, 126, 234, 0.5);
  103. }
  104. }
  105. .login-title {
  106. font-size: 28px;
  107. font-weight: 800;
  108. background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #00d4ff 100%);
  109. -webkit-background-clip: text;
  110. -webkit-text-fill-color: transparent;
  111. background-clip: text;
  112. margin-bottom: 8px;
  113. }
  114. .login-subtitle {
  115. color: #64748b;
  116. font-size: 15px;
  117. font-weight: 500;
  118. }
  119. .login-form {
  120. display: flex;
  121. flex-direction: column;
  122. gap: 24px;
  123. }
  124. .form-group {
  125. display: flex;
  126. flex-direction: column;
  127. gap: 8px;
  128. }
  129. .form-label {
  130. font-size: 14px;
  131. font-weight: 600;
  132. color: #1e293b;
  133. }
  134. .form-input {
  135. padding: 14px 18px;
  136. border: 1px solid rgba(102, 126, 234, 0.25);
  137. border-radius: 12px;
  138. font-size: 15px;
  139. background: rgba(255, 255, 255, 0.8);
  140. transition: all 0.3s ease;
  141. outline: none;
  142. }
  143. .form-input:focus {
  144. border-color: #667eea;
  145. box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
  146. background: #fff;
  147. }
  148. .form-input::placeholder {
  149. color: #94a3b8;
  150. }
  151. .password-input-wrapper {
  152. position: relative;
  153. }
  154. .password-input {
  155. width: 100%;
  156. padding-right: 56px;
  157. }
  158. .toggle-password-btn {
  159. position: absolute;
  160. right: 8px;
  161. top: 50%;
  162. transform: translateY(-50%);
  163. background: none;
  164. border: none;
  165. font-size: 20px;
  166. cursor: pointer;
  167. padding: 8px;
  168. display: flex;
  169. align-items: center;
  170. justify-content: center;
  171. border-radius: 8px;
  172. transition: background 0.2s ease;
  173. }
  174. .toggle-password-btn:hover {
  175. background: rgba(102, 126, 234, 0.1);
  176. }
  177. .error-message {
  178. background: rgba(239, 68, 68, 0.1);
  179. border: 1px solid rgba(239, 68, 68, 0.3);
  180. color: #dc2626;
  181. padding: 12px 16px;
  182. border-radius: 10px;
  183. font-size: 14px;
  184. font-weight: 500;
  185. text-align: center;
  186. }
  187. .login-btn {
  188. padding: 16px;
  189. border: none;
  190. border-radius: 12px;
  191. font-size: 16px;
  192. font-weight: 700;
  193. color: white;
  194. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  195. cursor: pointer;
  196. transition: all 0.3s ease;
  197. box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  198. }
  199. .login-btn:hover:not(:disabled) {
  200. transform: translateY(-2px);
  201. box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
  202. background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  203. }
  204. .login-btn:active:not(:disabled) {
  205. transform: translateY(0);
  206. }
  207. .login-btn:disabled {
  208. opacity: 0.6;
  209. cursor: not-allowed;
  210. }