:root {
    --icon-color: #322c47;
    --icon-filter: brightness(0) saturate(100%) invert(15%) sepia(25%) saturate(2000%) hue-rotate(240deg) brightness(30%) contrast(90%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #3ABDFF66, #3ABDFF66);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.page {
    display: flex;
    width: 100%;
    max-width: 400px;
    min-height: 100vh;
    flex-direction: column;
    position: relative;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.globe-icon, .service-icon {
    font-size: 18px;
}

/* 图标样式 */
.icon-image {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: var(--icon-filter);
}

/* 购物车图标样式 */
.shopping-cart-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    height: 120px;
}

.cart-image {
    width: 120px;
    height: 114px;
    object-fit: contain;
}

/* 登录表单样式 */
.login-form {
    background: rgb(255 255 255 / 32%);
    border-radius: 20px;
    padding: 30px;
    margin: 20px;
    backdrop-filter: blur(10px);
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.input-container {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
    color:#fc1;
}

.input-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
    border: 2px solid #e0e0e0;
    /* 防止被挤压变形 */
    flex: 0 0 40px;
    min-width: 40px;
}

.input-icon .icon-image {
    width: 20px;
    height: 20px;
    object-fit: cover;
    filter: var(--icon-filter);
    /* Windows兼容性修复 */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
}

/* 眼睛图标样式 */
.eye-image {
    width: 20px;
    height: 20px;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.3s ease;
    filter: var(--icon-filter);
}

.eye-icon img {
    filter: var(--icon-filter);
}

.eye-image:hover {
    opacity: 0.7;
}

/* 语言选择弹框样式 */
.language-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.language-modal-content {
    background-color: white;
    margin: 20% auto;
    padding: 25px;
    border-radius: 12px;
    width: 85%;
    max-width: 350px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.language-modal-header {
    text-align: right;
    margin-bottom: 1px;
}

.language-modal-close {
    color: #999;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.language-modal-close:hover {
    color: #333;
}

.language-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.language-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 2px solid transparent;
}

.language-option:hover {
    background-color: #f5f5f5;
}

.language-option.selected {
    background-color: transparent;
    border-color: transparent;
}

.language-flag {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
}

.language-name {
    font-size: 13px;
    text-align: center;
    color: #333;
    font-weight: 500;
    line-height: 1.2;
}

.selected-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    background-color: #9370DB;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(147, 112, 219, 0.3);
}

.input-field {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: white;
    font-size: 16px;
    outline: none;
}

.input-container .input-field {
    padding-right: 36px;
}

.eye-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #666;
    /* 确保图标容器有固定尺寸 */
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 防止图标与文字重叠 */
    z-index: 10;
    /* 添加平滑过渡效果 */
    transition: all 0.2s ease;
    /* 确保容器位置稳定 */
    overflow: hidden;
    /* 确保图标在输入框内部右侧 */
    pointer-events: auto;
}

/* 登录按钮样式 */
.login-btn {
    width: 60%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: #8688f0;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 10px 0;
    margin-left: 55px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn:hover {
    transform: translateY(-2px);
}

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

/* 注册链接样式 */
.register-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 16px;
}

.register-link a {
    color: #4169E1;
    text-decoration: none;
    font-weight: normal;
    cursor: pointer;
}

.register-link a:hover {
    text-decoration: underline;
}

/* 密码可见性样式 */
.password-visible {
    background: rgba(147, 112, 219, 0.1) !important;
}

/* 响应式设计 */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .login-form {
        margin: 10px;
        padding: 20px;
    }
    
    .header {
        padding: 15px;
        font-size: 12px;
    }
    
    .shopping-cart-icon {
        margin: 30px 0;
    }
    
    .language-modal-content {
        margin: 45% auto;
        padding: 20px;
        width: 90%;
    }
    
    .language-options {
        gap: 15px;
    }
    
    .language-flag {
        width: 40px;
        height: 40px;
    }
    
    .language-name {
        font-size: 12px;
    }
}

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

.page {
    animation: fadeIn 0.5s ease-out;
}
