/* 现代化登录页面样式 */

/* 重置和基础样式 */
* {
    box-sizing: border-box;
}

.login-container {
    display: flex;
    min-height: 650px;
    max-width: 1400px;
    width: 95%;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-left {
    flex: 1.2;
    min-width: 500px;
    padding: 50px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-wrapper {
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 10px;
}

.login-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    line-height: 1.2;
}

.login-header p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

/* 表单样式 */
.modern-login-form {
    width: 100%;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modern-input {
    height: 56px;
    padding: 20px 50px 20px 20px;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    font-size: 16px;
    color: #2c3e50;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.modern-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.modern-input::placeholder {
    color: #bdc3c7;
    font-size: 14px;
}

.input-label {
    position: absolute;
    top: -10px;
    left: 15px;
    background: #ffffff;
    padding: 0 8px;
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
    pointer-events: none;
}

.input-icon {
    position: absolute;
    right:195px;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
}

.user-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23667eea' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.password-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23667eea' viewBox='0 0 24 24'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E");
}

/* 移除密码切换按钮样式 */

/* 步骤指示器样式 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0 20px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e8ecf0;
    z-index: 1;
}

.step.active:not(:last-child)::after {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e8ecf0;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.step-label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
    line-height: 1.2;
}

.step.active .step-label {
    color: #667eea;
    font-weight: 600;
}

/* 邮箱和手机图标 */
.email-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23667eea' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.89 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.mobile-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23667eea' viewBox='0 0 24 24'%3E%3Cpath d='M17 2H7c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM7 4h10v12H7V4z'/%3E%3C/svg%3E");
}

/* 验证码样式 */
.captcha-group {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.captcha-input {
    flex: 1;
}

.captcha-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.authcode-img {
    width: 120px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #e8ecf0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.authcode-img:hover {
    border-color: #667eea;
}

/* 移除验证码刷新按钮样式 */

/* 复选框样式 */
.checkbox-group {
    margin-bottom: 30px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #7f8c8d;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e8ecf0;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.btn-loading {
    display: none;
}

/* 链接样式 */
.login-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.forgot-password, .register-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password:hover, .register-link:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* 社交登录 */
.social-login {
    margin-top: 30px;
}

.divider {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8ecf0;
}

.divider span {
    background: white;
    padding: 0 20px;
    color: #7f8c8d;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid #e8ecf0;
    border-radius: 10px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.qq-btn:hover {
    background: #12b7f5;
    color: white;
    border-color: #12b7f5;
}

.wechat-btn:hover {
    background: #07c160;
    color: white;
    border-color: #07c160;
}

.social-icon {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.qq-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2312b7f5'%3E%3Cpath d='M12.001 2.002c-5.522 0-9.999 4.477-9.999 9.999 0 4.99 3.656 9.126 8.437 9.879v-6.988h-2.54v-2.891h2.54V9.798c0-2.508 1.493-3.891 3.776-3.891 1.094 0 2.24.195 2.24.195v2.459h-1.264c-1.24 0-1.628.771-1.628 1.562v1.878h2.773l-.443 2.891h-2.33v6.988C18.344 21.129 22 16.992 22 12.001c0-5.522-4.477-9.999-9.999-9.999z'/%3E%3C/svg%3E");
}

.wechat-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2307c160'%3E%3Cpath d='M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 0 0 .167-.054l1.903-1.114a.864.864 0 0 1 .717-.098 10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 4.882-1.653 7.07.045.056-.85.056-1.653-.045-2.578C16.561 3.844 12.691 2.188 8.691 2.188z'/%3E%3C/svg%3E");
}

/* 右侧欢迎区域 */
.login-right {
    flex: 0.8;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
}

.welcome-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.welcome-illustration {
    position: relative;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: float 8s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.element-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    background: rgba(255, 255, 255, 0.1);
}

.element-2 {
    width: 80px;
    height: 80px;
    top: 50%;
    right: 15%;
    animation-delay: 2.5s;
    background: rgba(255, 255, 255, 0.08);
}

.element-3 {
    width: 60px;
    height: 60px;
    top: 75%;
    left: 50%;
    animation-delay: 5s;
    background: rgba(255, 255, 255, 0.12);
}

.element::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 50%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.welcome-text h3 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
}

.welcome-text p {
    font-size: 20px;
    margin: 0 0 40px 0;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-list li {
    padding: 12px 0;
    font-size: 18px;
    opacity: 0.95;
    font-weight: 400;
    transition: all 0.3s ease;
}

.feature-list li:hover {
    transform: translateX(5px);
    opacity: 1;
}

.feature-list li::before {
    content: attr(data-icon);
    margin-right: 12px;
    font-size: 20px;
    width: 24px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        margin: 10px;
        border-radius: 15px;
        width: 95%;
        min-height: 500px;
    }
    
    .login-left {
        min-width: auto;
        padding: 30px 20px;
        flex: none;
    }
    
    .login-header h2 {
        font-size: 28px;
    }
    
    .login-right {
        min-height: 250px;
        flex: none;
        padding: 30px 20px;
    }
    
    .welcome-text h3 {
        font-size: 28px;
        letter-spacing: 1px;
    }
    
    .welcome-text p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .feature-list {
        padding: 15px 20px;
        margin-top: 20px;
    }
    
    .feature-list li {
        font-size: 14px;
        padding: 8px 0;
    }
    
    .captcha-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .element-1, .element-2, .element-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 5px;
        width: 98%;
    }
    
    .login-left {
        padding: 20px 15px;
    }
    
    .login-header h2 {
        font-size: 20px;
    }
    
    .login-form-wrapper {
        max-width: none;
    }
}

/* 注册类型选择样式 */
.register-type-selection {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.register-type-card {
    display: flex;
    align-items: center;
    padding: 25px;
    border: 2px solid #e8ecf0;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.register-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transition: left 0.3s ease;
}

.register-type-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.register-type-card:hover::before {
    left: 0;
}

.type-icon {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 2px solid #e8ecf0;
    overflow: hidden;
}

.person-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-color: #4facfe;
}

.store-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    border-color: #fa709a;
}

.type-icon .ico1,
.type-icon .ico2 {
    display: block;
    width: 50px;
    height: 50px;
    background-image: url("../images/login/ico.gif");
    background-repeat: no-repeat;
    background-size: 50px auto;
}

.type-icon .ico1 {
    background-position: 0 0;
}

.type-icon .ico2 {
    background-position: 0 -50px;
}

.register-type-card:hover .type-icon {
    transform: scale(1.1) rotate(5deg);
}

.type-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.type-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #2c3e50;
}

.type-content p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.type-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.type-features li {
    font-size: 12px;
    color: #5a6c7d;
    margin-bottom: 4px;
    font-weight: 500;
}

.type-arrow {
    font-size: 24px;
    color: #667eea;
    font-weight: bold;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.register-type-card:hover .type-arrow {
    transform: translateX(5px);
    color: #5a6fd8;
}

/* 登录链接样式调整 */
.login-links span {
    color: #7f8c8d;
    font-size: 14px;
    margin-right: 8px;
}

/* 移除加载动画和验证状态样式 */

/* 过渡动画 */
.login-form-wrapper {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-content {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
