* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: system-ui, -apple-system, sans-serif;
    }
    
    body {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      background-color: #050a1a;
            /* 亮蓝色网格线（透明度降低，更淡） */
      background-image: 
         linear-gradient(to bottom, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
         linear-gradient(to right, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
        /* 网格间距：20px（超密网格） */
      background-size: 20px 20px;
        /* 轻微发光效果 */
      box-shadow: inset 0 0 200px rgba(59, 130, 246, 0.08);
      min-height: 100vh;
      color: #e6efff;   
    }

        .toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    padding: 10px 15px;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.toast.success { background-color: rgb(5, 111, 31); }
.toast.error { background-color: #f5222d; }
.toast.warning { background-color: #faad14; }
.toast.info { background-color: #1890ff; }

.toast.show {
    opacity: 1;
    visibility: visible;
    top: 100px;
}
    .index{
       display: flex;
       align-items: center;
       }
    .index a{
     text-decoration: none;  
     background-color: rgba(41, 40, 40, 0.5);
     font-size: 13px;
     padding: 5px;
     border-radius: 3px;
     color: #fff;
    }
    .container {
      width: 100%;
      max-width: 400px;
    }
    
    .card {
      background: white;
      border-radius: 1rem;
      padding: 1.2rem;
      box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
      transition: box-shadow 0.3s ease;
    }
    
    .card:hover {
      box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.1);
    }
    
    .title {
      font-size: 1.8rem;
      font-weight: 700;
      color: #1D2129;
      margin-bottom: 0.5rem;
      text-align: center;
    }
    
    .subtitle {
      color: #666;
      text-align: center;
      margin-bottom: 2rem;
      font-size: 0.9rem;
    }
    
    .form-group {
      margin-bottom: 1.5rem;
      position: relative;
    }
    
    .form-input {
      width: 100%;
      padding: 1rem;
      border: 1px solid #ddd;
      border-radius: 0.5rem;
      font-size: 1rem;
      transition: all 0.2s ease;
    }
    
    .form-input:focus {
      border-color: #165DFF;
      box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
      outline: none;
    }
    
    .form-label {
      position: absolute;
      left: 1rem;
      top: 1rem;
      color: #666;
      background: white;
      padding: 0 0.25rem;
      transition: all 0.2s ease;
      pointer-events: none;
      font-size: 0.9rem;
    }
    
    .form-input:focus + .form-label,
    .form-input:not(:placeholder-shown) + .form-label {
      transform: translateY(-1rem) scale(0.85);
      color: #165DFF;
    }
    
    .btn {
      width: 100%;
      padding: 1rem;
      border: none;
      border-radius: 0.5rem;
      font-size: 1rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .btn-primary {
      background: #165DFF;
      color: white;
    }
    
    .btn-primary:hover {
      transform: scale(1.02);
    }
    
    .btn-primary:active {
      transform: scale(0.98);
    }
    
    .btn-code {
      position: absolute;
      right: 0.5rem;
      top: 0.5rem;
      font-size: 0.875rem;
      padding: 0.5rem 1rem;
      border-radius: 0.5rem;
      background: #165DFF;
      color: white;
      border: none;
      cursor: pointer;
    }
    
    .btn-code:disabled {
      background: #ccc;
      cursor: not-allowed;
    }
    
    .toggle-link {
      color: #165DFF;
      font-weight: 500;
      cursor: pointer;
      text-decoration: none;
    }
    
    .toggle-link:hover {
      text-decoration: underline;
    }
    
    .form-actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1.5rem;
      font-size: 0.875rem;
    }
    
    .checkbox-label {
      display: flex;
      align-items: center;
      color: #666;
      cursor: pointer;
      font-size: 0.875rem;
    }
    
    .checkbox-label input {
      margin-right: 0.5rem;
    }
    
    .toggle-section {
      text-align: center;
      margin-top: 2rem;
      color: #666;
      font-size: 0.875rem;
    }
    
    .password-toggle {
      position: absolute;
      right: 1rem;
      top: 1rem;
      background: none;
      border: none;
      color: #999;
      cursor: pointer;
      transition: color 0.2s ease;
    }
    
    .password-toggle:hover {
      color: #165DFF;
    }
    
    .slide-enter {
      animation: slideIn 0.4s ease forwards;
    }
    
    .slide-exit {
      animation: slideOut 0.4s ease forwards;
    }
    
    @keyframes slideIn {
      from { transform: translateX(50px); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }
    
    @keyframes slideOut {
      from { transform: translateX(0); opacity: 1; }
      to { transform: translateX(-50px); opacity: 0; }
    }
        /* 仅新增必要的隐藏和切换动画样式，不修改原有样式 */
    .hidden { display: none !important; }
    .slide-enter { animation: slideEnter 0.4s ease forwards; }
    .slide-exit { animation: slideExit 0.3s ease forwards; }
    @keyframes slideEnter { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
    @keyframes slideExit { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-20px); } }

    .form-container {
      position: relative;
      min-height: 450px;
    }
    
    .form {
      display: flex;
      flex-direction: column;
      position: absolute;
      width: 100%;
    }
    
    .hidden {
      opacity: 0;
      pointer-events: none;
    }
    
    .optional-hint {
      font-size: 0.8rem;
      color: #999;
      margin-top: 0.3rem;
      margin-left: 1rem;
    }
    
    .footer-text {
      text-align: center;
      color: #999;
      font-size: 0.875rem;
      margin-top: 2rem;
    }
    
    .agreement {
      display: flex;
      align-items: center;
      margin-bottom: 1.5rem;
      font-size: 0.875rem;
    }
    
    .agreement input {
      margin-right: 0.5rem;
    }