* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom right, #DBEAFE, #BFDBFE, #f3e8ff);
    padding: 1rem;
    padding-top: calc(60px + 2rem);
}


.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
}

.card-header {
    background: linear-gradient(to right, #3B82F6, #a855f7);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.scissors-icon {
    margin-right: 0.5rem;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.card-description {
    font-size: 0.875rem;
    color: #DBEAFE;
}

.card-content {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="password"],
input[type="tel"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    background-color: #FFFFFF;
    color: #374151;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="tel"]::placeholder {
    color: #9CA3AF;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #4E7FFF;
    box-shadow: 0 0 0 3px rgba(78, 127, 255, 0.1);
}

.verification-code {
    display: flex;
    gap: 0.5rem;
}

.verification-code input {
    flex-grow: 1;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: linear-gradient(to right, #3B82F6, #a855f7);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: linear-gradient(to right, #2563EB, #9333ea);
}

.btn-outline {
    padding: 0.75rem 1rem;
    background: white;
    color: #4E7FFF;
    border: 1px solid #4E7FFF;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-outline:hover {
    background: #EFF6FF;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}

.error {
    color: #FF4D4F;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(-10px);
    animation: slideDown 0.3s forwards;
}

@keyframes slideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-footer {
    padding: 1rem 1.5rem;
    background-color: #F9FAFB;
    border-top: 1px solid #E5E7EB;
}

.third-party-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.third-party-login .btn {
    flex: 1;
}

.login-link {
    text-align: center;
    font-size: 0.875rem;
    color: #6B7280;
}

.login-link a {
    color: #3B82F6;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

/* 添加错误状态的输入框样式 */
.error-input {
    border-color: #FF4D4F !important;
    background-color: #FFF2F0;
}

.error-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.1) !important;
}

/* 添加加载动画样式 */
.animate-spin {
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 添加禁用状态样式 */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

input:disabled {
    background-color: #F3F4F6;
    cursor: not-allowed;
}

/* 添加二维码模态框样式 */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.qr-modal-content {
    background: white;
    border-radius: 8px;
    padding: 24px;
    width: 360px;
    max-width: 90%;
}

.qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.qr-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.qr-code-container {
    text-align: center;
    padding: 20px;
}

.qr-code img {
    width: 200px;
    height: 200px;
}

.qr-tip {
    margin-top: 16px;
    color: #666;
    font-size: 14px;
}

.qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.scan-success {
    margin-top: 12px;
    padding: 8px;
    background: #f0f9ff;
    color: #3B82F6;
    border-radius: 4px;
}

.qr-expired {
    text-align: center;
    padding: 20px;
}

.error-message {
    color: #ff4d4f;
    text-align: center;
    padding: 20px;
}

.refresh-btn,
.retry-btn {
    margin-top: 12px;
}

/* 添加第三方登录图标样式 */
.third-party-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

/* 更新按钮样式以确保图标对齐 */
.btn-outline {
    padding: 0.75rem 1rem;
    background: white;
    color: #4E7FFF;
    border: 1px solid #4E7FFF;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

/* 优化加载动画样式 */
.animate-spin {
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

.inline-block {
    display: inline-block;
}

.h-4 {
    height: 1rem;
}

.w-4 {
    width: 1rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

/* 优化按钮内容垂直对齐 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.5rem;
}

.send-code-btn {
    padding: 0.75rem 1rem;
    background: white;
    color: #4E7FFF;
    border: 1px solid #4E7FFF;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 120px;
}

.send-code-btn:hover {
    background: #EFF6FF;
}

.send-code-btn:disabled {
    background-color: #F3F4F6;
    border-color: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
}

/* 修改消息提示样式 */
.message-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    border-radius: 8px;
    color: #4E7FFF;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    background: rgba(78, 127, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(78, 127, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    text-align: center;
}

.message-toast.success {
    background: rgba(78, 127, 255, 0.1);
    color: #4E7FFF;
}

.message-toast.error {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.message-toast.show {
    opacity: 1;
}

/* 注册成功模态框样式 */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-modal.show {
    opacity: 1;
    visibility: visible;
}

.success-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.success-modal.show .success-modal-content {
    transform: scale(1);
}

.success-modal-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.success-modal-btn {
    background: linear-gradient(to right, #3B82F6, #a855f7);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.success-modal-btn:hover {
    opacity: 0.9;
}