/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

/* 登录容器 */
.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 登录标签 */
.login-tabs {
    display: flex;
    background: #f8f9fa;
    padding: 4px;
    margin: 20px;
    border-radius: 12px;
}

.tab {
    flex: 1;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.tab:hover {
    background: rgba(0, 0, 0, 0.05);
}

.tab.active {
    background: white;
    color: #4285f4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab i {
    font-size: 16px;
}

/* 登录表单 */
.login-form {
    padding: 0 30px 30px;
    display: none;
}

.login-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-header p {
    color: #7f8c8d;
    font-size: 14px;
}

/* 表单组 */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label i {
    color: #4285f4;
    font-size: 14px;
}

/* 输入框 */
input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
}

input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

input::placeholder {
    color: #999;
}

/* 输入组（带按钮） */
.input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.input-group input {
    flex: 1;
}

/* 发送验证码按钮 */
.send-code-btn {
    background: #4285f4;
    color: white;
    border: none;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 110px;
	width: 50px;
}

.send-code-btn:hover:not(:disabled) {
    background: #3367d6;
    transform: translateY(-1px);
}

.send-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none !important;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Google登录信息 */
.google-info {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.google-icon {
    font-size: 48px;
    color: #4285f4;
    margin-bottom: 15px;
}

.google-info h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 8px;
}

.google-info .desc {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Google登录按钮 */
.google-btn {
    width: 100%;
    background: white;
    color: #555;
    border: 2px solid #ddd;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.google-btn:hover {
    border-color: #4285f4;
    color: #4285f4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.1);
}

.google-btn i {
    color: #4285f4;
    font-size: 18px;
}

/* 切换提示 */
.switch-tip {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.switch-link {
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
    margin-left: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.switch-link:hover {
    text-decoration: underline;
}

/* 登录页脚 */
.login-footer {
    padding: 20px 30px;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 13px;
}

.login-footer i {
    color: #34a853;
    margin-right: 6px;
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    position: relative;
    margin-bottom: 15px;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #4285f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-wrapper {
        padding: 10px;
    }
    
    .login-box {
        border-radius: 12px;
    }
    
    .login-tabs {
        margin: 15px;
    }
    
    .login-form {
        padding: 0 20px 20px;
    }
    
    .form-header h2 {
        font-size: 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .send-code-btn {
        width: 100%;
        padding: 12px;
    }
    
    .submit-btn,
    .google-btn {
        padding: 14px;
        font-size: 15px;
    }
}

/* 输入框聚焦状态 */
.form-group.focused label {
    color: #4285f4;
}

.form-group.focused input {
    border-color: #4285f4;
}

