 body {
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
     background-color: #f3f3f3;
     margin: 0;
     padding: 0;
     display: flex;
     justify-content: center;
     align-items: center;
     min-height: 100vh
 }

 .container {
     width: 100%;
     max-width: 400px;
     padding: 1rem
 }

 .card {
     background-color: #ffffff;
     border-radius: 0.5rem;
     box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
     overflow: hidden
 }

 .card-header {
     padding: 1rem;
     text-align: center;
     position: relative
 }

 .logo {
     position: absolute;
     top: 1rem;
     right: 1rem
 }

 .logo-svg {
     width: 2rem;
     height: 2rem
 }

 .card-title {
     font-size: 1.5rem;
     font-weight: 600;
     margin-bottom: 0.5rem
 }

 .card-description {
     font-size: 0.875rem;
     color: #6b7280
 }

 .card-content {
     padding: 1.5rem
 }

 .form-group {
     margin-bottom: 1rem
 }

 label {
     display: block;
     font-size: 0.875rem;
     margin-bottom: 0.5rem
 }

 .input {
     width: 95%;
     padding: 0.5rem;
     font-size: 1rem;
     border: 1px solid #d1d5db;
     border-radius: 0.25rem;
     background-color: #f9fafb
 }

 .input:focus {
     outline: none;
     border-color: #3b82f6;
     box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1)
 }

 input::placeholder {
     font-size: 12px;
     color: #999;
     opacity: 1
 }

 .input-with-button {
     display: flex
 }

 .input-with-button .input {
     flex-grow: 1;
     border-top-right-radius: 0;
     border-bottom-right-radius: 0
 }

 .input-with-button .button {
     border-top-left-radius: 0;
     border-bottom-left-radius: 0
 }

 .button {
     padding: 0.5rem 1rem;
     font-size: 0.875rem;
     font-weight: 500;
     border: none;
     border-radius: 0.25rem;
     cursor: pointer;
     transition: background-color 0.2s
 }

 .button:disabled {

    cursor: not-allowed;

     /* 
     background-color: #cccccc;
     border-color: #cccccc;
     color: #666666;
     cursor: not-allowed; */
 }

 .button-primary {
     background-color: #3b82f6;
     color: #ffffff;
     width: 100%
 }

 .button-primary:hover {
     background-color: #2563eb
 }

 .button-outline {
     background-color: transparent;
     border: 1px solid #d1d5db;
     color: #374151
 }

 .button-outline:hover {
     background-color: #f3f4f6
 }

 .button-link {
     background-color: transparent;
     color: #3b82f6;
     padding: 0
 }

 .button-link:hover {
     text-decoration: underline
 }

 .divider {
     display: flex;
     align-items: center;
     text-align: center;
     margin: 1rem 0
 }

 .divider::before,
 .divider::after {
     content: '';
     flex: 1;
     border-bottom: 1px solid #e5e7eb
 }

 .divider span {
     padding: 0 0.5rem;
     color: #6b7280;
     font-size: 0.75rem
 }

 .social-buttons {
     display: flex;
     justify-content: space-between;
     gap: 0.5rem
 }

 .social-button {
     flex: 1;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 0.75rem
 }

 .icon {
     display: flex;
     justify-content: center;
     /* 水平居中 */
     align-items: center;
     /* 垂直居中 */
 }

 .card-footer {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 1rem 1.5rem;
     background-color: #f9fafb;
     border-top: 1px solid #e5e7eb
 }

 #switchAuthMode {
     font-size: 0.875rem;
     color: #6b7280
 }

 @media (prefers-color-scheme:dark) {
     body {
         background-color: #1f2937
     }

     .card {
         background-color: #111827
     }

     .card-title {
         color: #f3f4f6
     }

     .card-description {
         color: #9ca3af
     }

     .input {
         background-color: #374151;
         border-color: #4b5563;
         color: #f3f4f6
     }

     .input:focus {
         border-color: #60a5fa
     }

     .button-primary {
         background-color: #3b82f6
     }

     .button-primary:hover {
         background-color: #2563eb
     }

     .button-outline {
         border-color: #4b5563;
         color: #e5e7eb
     }

     .button-outline:hover {
         background-color: #374151
     }

     .button-link {
         color: #60a5fa
     }

     .divider::before,
     .divider::after {
         border-color: #4b5563
     }

     .divider span {
         color: #9ca3af
     }

     .card-footer {
         background-color: #1f2937;
         border-color: #374151
     }

     #switchAuthMode {
         color: #9ca3af
     }
 }

/* 加载动画样式 */
.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle; /* 确保旋转动画垂直居中 */
}

/* 旋转动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}