* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* 极简背景 */
.login-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c901e3 0%, #e200db 100%);
    padding: 20px;
}

/* 登录卡片 */
.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid #f0f0f0;
    padding: 40px 48px;
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo区域 */
.logo-area {
    text-align: center;
    margin-bottom: 24px;
}

.logo-icon {
    width: 64px;
    height: 64px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.logo-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.logo-subtitle {
    font-size: 12px;
    color: #868e96;
    letter-spacing: 1px;
}

/* 登录方式切换 */
.login-tabs {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 28px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.login-tab {
    font-size: 14px;
    color: #999;
    cursor: pointer;
    position: relative;
    padding-bottom: 12px;
    transition: color 0.3s;
}

.login-tab.active {
    color: #c901e3;
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    right: 0;
    height: 2px;
    background: #c901e3;
    border-radius: 2px;
}

/* 登录表单 */
.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    font-size: 14px;
    color: #333;
    background: #f8f8f8;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.3s;
    outline: none;
}

.form-input:focus {
    background: #fff;
    border-color: #c901e3;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #999;
}

/* 登录按钮 */
.btn-login {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #c901e3 0%, #e200db 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.btn-login:hover {
    box-shadow: 0 8px 20px rgba(201, 1, 227, 0.4);
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(0);
}

/* 微信登录 */
.weixin-login {
    text-align: center;
    padding: 40px 0;
}

.weixin-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    background: #07c160;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    margin-bottom: 16px;
}

.weixin-login-btn:hover {
    background: #06ad56;
    box-shadow: 0 8px 20px rgba(7, 193, 96, 0.3);
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

.weixin-login-btn svg path {
    fill: #fff;
}

.weixin-tip {
    font-size: 13px;
    color: #999;
}

/* 登录成功提示 */
.success-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.success-toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e8f5e9;
}

.success-icon {
    width: 18px;
    height: 18px;
    background: #52c41a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.success-icon::before {
    content: '';
    width: 6px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.success-text {
    font-size: 14px;
    color: #52c41a;
    font-weight: 500;
}

/* 响应式 */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }
    
    .logo-title {
        font-size: 20px;
    }
}