@charset "UTF-8";

/* 登录弹窗组件 */
/* 登录弹窗遮罩 */
.login-modal-mask {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998 !important;
    display: none;
    animation: fadeIn 0.3s;
}

.login-modal-mask.show {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 登录弹窗主体 */
.login-modal {
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    z-index: 99999 !important;
    display: none;
    animation: slideUp 0.3s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    isolation: isolate; /* 创建新的层叠上下文 */
}

.login-modal.show {
    display: block !important;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* 弹窗头部 */
.login-modal-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.login-modal-close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.login-modal-close:hover {
    color: #333;
}

/* 弹窗内容 */
.login-modal-body {
    padding: 24px 20px;
}

.login-form-item {
    margin-bottom: 20px;
}

.login-form-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.login-form-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s;
}

.login-form-input:focus {
    border-color: #E64377;
    box-shadow: 0 0 0 3px rgba(230, 67, 119, 0.1);
}

.login-form-input-group {
    display: flex;
    gap: 8px;
}

.login-form-input-group .login-form-input {
    flex: 1;
}

.login-code-btn {
    padding: 12px 20px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.login-code-btn:hover:not(:disabled) {
    background: #e8e8e8;
}

.login-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-code-btn.countdown {
    color: #999;
}

/* 登录按钮 */
.login-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff7eb3 0%, #E64377 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    box-shadow: 0 4px 12px rgba(230, 67, 119, 0.3);
}

.login-submit-btn:active {
    transform: scale(0.98);
}

.login-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
