/* 郁金香登录页面样式 */

/* 确保顶部信息显示 */
.inner {
    position: relative;
    z-index: 5;
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    overflow: visible !important;
}

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

html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #f5f5f5;
    overflow-x: hidden;
}

/* 覆盖其他CSS文件中的限制性样式 */
.body {
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100vh !important;
    overflow: visible !important;
    text-align: left !important;
}

/* 主容器 */
.tulip-login-container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    margin: 0;
    padding: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* 背景图片 */
.tulip-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

.tulip-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 登录表单容器 */
.login-form-container {
    position: absolute;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    min-width: 450px;
    max-width: 500px;
    left: 10%;
    top: 50vh;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

/* .login-form-container:hover {
    transform: translateY(-50%) translateY(-5px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
} */

/* 标签页 */
.form-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #999;
    transition: all 0.3s ease;
    position: relative;
}

.tab-item.active {
    color: #ff6b9d;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(255, 107, 157, 0.05) 100%);
    border-radius: 15px 15px 0 0;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    border-radius: 2px;
}

/* .tab-item:hover:not(.active) {
    color: #666;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 15px 15px 0 0;
} */

/* 表单内容 */
.form-content {
    display: none;
}

.form-content.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

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

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

/* 输入框容器 */
.input-field {
    position: relative;
    margin-bottom: 25px;
}

.input-field.captcha-field {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* 输入框图标 */
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* 用户图标 - 默认粉色 */
.user-icon {
    background-image: url("../images/login/3_03.png");
}

/* 锁图标 - 默认粉色 */
.lock-icon {
    background-image: url("../images/login/3_05.png");
}

/* 验证图标 - 默认粉色 */
.check-icon {
    background-image: url("../images/login/3_07.png");
}

/* 输入框 */
.tulip-input {
    width: 100%;
    height: 50px;
    padding: 0 20px 0 50px;
    border: 2px solid #e8e8e8;
    border-radius: 25px;
    font-size: 16px;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    outline: none;
}

.tulip-input:focus {
    border-color: #ff6b9d;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
    transform: translateY(-2px);
}

.tulip-input::placeholder {
    color: #999;
    font-size: 14px;
}

/* 验证码按钮 */
.captcha-btn {
    height: 50px;
    padding: 0 20px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
}

.captcha-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

/* 验证码图片 */
.captcha-img {
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.captcha-img:hover {
    border-color: #ff6b9d;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.2);
    transform: scale(1.02);
}

/* 协议文本 */
.agreement-text {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin: 20px 0;
    line-height: 1.5;
}

.agreement-text a {
    color: #ff6b9d;
    text-decoration: none;
}

.agreement-text a:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.tulip-btn {
    width: 100%;
    height: 55px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    border: none;
    border-radius: 27px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.tulip-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

/* .tulip-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.4);
} */

.tulip-btn:hover::before {
    left: 100%;
}

.tulip-btn:active {
    transform: translateY(-1px);
}

/* 表单链接 */
.form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

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

/* .forgot-link:hover, .register-link:hover, .login-link:hover {
    color: #ff8fab;
    text-decoration: underline;
} */

/* 社交登录 */
.social-login {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

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

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

.divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 20px;
    color: #999;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

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

.social-btn {
    flex: 1;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid #e8e8e8;
    border-radius: 22px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}
/* 
.social-btn:hover {
    border-color: #ff6b9d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.2);
} */

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

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

.social-icon {
    width: 18px;
    height: 18px;
    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");
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .login-form-container {
        left: 8%;
        top: 50vh;
        transform: translateY(-50%);
    }
}

@media (max-width: 768px) {
    .login-form-container {
        left: 3%;
        right: 3%;
        top: 50vh;
        min-width: auto;
        width: auto;
        max-width: none;
        padding: 30px 25px;
        transform: translateY(-50%);
    }
    
    /* .login-form-container:hover {
        transform: translateY(-50%) translateY(-5px);
    } */
    
    .tulip-bg-image {
        object-position: center right;
    }
    
    .form-tabs {
        margin-bottom: 25px;
    }
    
    .tab-item {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .tulip-input {
        height: 45px;
        font-size: 15px;
    }
    
    .tulip-btn {
        height: 50px;
        font-size: 16px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .login-form-container {
        left: 2%;
        right: 2%;
        top: 50vh;
        padding: 25px 20px;
        border-radius: 20px;
        transform: translateY(-50%);
    }
    
    .input-field.captcha-field {
        flex-direction: column;
        gap: 10px;
    }
    
    .captcha-btn {
        width: 100%;
        height: 45px;
    }
    
    .form-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}


/* 输入框聚焦时的图标颜色变化 */
.tulip-input:focus + .input-icon,
.input-field:focus-within .input-icon {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* 用户图标 - 聚焦时灰色 */
.tulip-input:focus + .input-icon.user-icon,
.input-field:focus-within .user-icon {
    background-image: url("../images/login/3_02.png");
}

/* 锁图标 - 聚焦时灰色 */
.tulip-input:focus + .input-icon.lock-icon,
.input-field:focus-within .lock-icon {
    background-image: url("../images/login/3_04.png");
}

/* 验证图标 - 聚焦时灰色 */
.tulip-input:focus + .input-icon.check-icon,
.input-field:focus-within .check-icon {
    background-image: url("../images/login/3_06.png");
}

/* ============ 简化步骤指示器样式 ============ */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 30px 0;
    gap: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #ff6b9d;
    color: white;
    transform: scale(1.1);
}

.step-label {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    text-align: center;
    line-height: 1.2;
}

.step.active .step-label {
    color: #ff6b9d;
    font-weight: 500;
}

/* 连接线 */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50px;
    width: 20px;
    height: 2px;
    background: #e8e8e8;
    z-index: -1;
}

.step.active:not(:last-child)::after {
    background: #ff6b9d;
}

/* 移动端简化步骤指示器 */
@media (max-width: 768px) {
    .step-indicator {
        margin: 15px 0 25px 0;
        gap: 15px;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .step-label {
        font-size: 11px;
        margin-top: 6px;
    }
    
    .step:not(:last-child)::after {
        left: 40px;
        width: 15px;
        top: 12px;
    }
}

/* ============ 错误提示样式 ============ */
.error-message {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 12px 16px;
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: 8px;
    color: #d63384;
    font-size: 14px;
    line-height: 1.4;
    animation: slideIn 0.3s ease-out;
}

.error-message::before {
    content: '';
    width: 16px;
    height: 16px;
    background: #d63384;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
    position: relative;
}

.error-message::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 2px;
    background: white;
}

/* 输入框错误状态 */
.input-field.error .tulip-input {
    border-color: #d63384;
    background: rgba(255, 107, 157, 0.05);
}

.input-field.error .input-icon {
    opacity: 0.6;
}

/* 成功提示样式 */
.success-message {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 12px 16px;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    color: #28a745;
    font-size: 14px;
    line-height: 1.4;
    animation: slideIn 0.3s ease-out;
}

.success-message::before {
    content: '✓';
    width: 16px;
    height: 16px;
    background: #28a745;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端错误提示 */
@media (max-width: 768px) {
    .error-message,
    .success-message {
        padding: 10px 12px;
        font-size: 13px;
        margin: 8px 0;
    }
    
    .error-message::before,
    .success-message::before {
        width: 14px;
        height: 14px;
        margin-right: 8px;
    }
}

/* ============ 注册页面样式 ============ */
.register-type-header {
    text-align: center;
    margin-bottom: 40px;
}

.register-type-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #ff6b9d;
    margin: 0 0 15px 0;
    position: relative;
}


.register-type-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.register-type-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.register-type-card {
    display: flex;
    align-items: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #ff6b9d;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.1);
}

.register-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 157, 0.1), transparent);
    transition: left 0.5s ease;
}

.register-type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.2);
    border-color: #ff8fab;
}

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

.type-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.person-icon {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.store-icon {
    background: linear-gradient(135deg, #fff3e0, #ffcc80);
}

.type-icon span {
    width: 40px;
    height: 40px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ico2 {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff6b9d"><path 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"/></svg>');
}

.ico1 {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff6b9d"><path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10z"/></svg>');
}

.register-type-card:hover .type-icon {
    transform: scale(1.05);
}

.type-content {
    flex: 1;
}

.type-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ff6b9d;
    margin: 0 0 8px 0;
}

.type-content p {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
}

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

.type-features li {
    font-size: 13px;
    color: #888;
    margin: 4px 0;
    display: flex;
    align-items: center;
}

.type-features li::before {
    content: '✓';
    color: #ff6b9d;
    font-weight: bold;
    margin-right: 8px;
}

.type-arrow {
    font-size: 24px;
    color: #ccc;
    transition: all 0.3s ease;
    margin-left: 15px;
}

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